[Bug 1281652] [NEW] AutomocInfo.cmake.in depends on environment variables

Andreas Pokorny andreas.pokorny at canonical.com
Tue Feb 18 16:23:14 UTC 2014


Public bug reported:

The cmake modules found in cmake 2.8.12.2-0ubuntu1 contain a qt moc configuration template file that gets generated into the build directory of a qt based project.
--- snip ----
set(AM_QT_MOC_EXECUTABLE "@_qt_moc_executable@")
if(DEFINED ENV{DEB_BUILD_MULTIARCH} AND DEFINED ENV{DEB_HOST_MULTIARCH} AND "@_qt_moc_executable@" MATCHES "/usr/lib/$ENV{DEB_HOST_MULTIARCH}/qt5/bin/moc")
  set(AM_QT_MOC_EXECUTABLE "/usr/lib/$ENV{DEB_BUILD_MULTIARCH}/qt5/bin/moc")
endif()
--- snip --- 

This is un-handy as it requires DEB_HOST_MULTIARCH and DEB_HOST_MULTIARCH to be set everytime you build.
Usually cmake configuration files are used to hard-code all movable parts at build configuration time.

Since you cannot switch architecture in a build directory in any way
there is no need to have that configureable at build time. It would be
nice if there is a way to evaluate the environment variables only once
configuration build time.

** Affects: cmake (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to cmake in Ubuntu.
https://bugs.launchpad.net/bugs/1281652

Title:
  AutomocInfo.cmake.in depends on environment variables

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1281652/+subscriptions




More information about the kubuntu-bugs mailing list