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

Timo Röhling 1281652 at bugs.launchpad.net
Fri Jun 3 21:37:33 UTC 2022


** Changed in: cmake (Ubuntu)
       Status: New => Fix Released

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

Title:
  AutomocInfo.cmake.in depends on environment variables

Status in cmake package in Ubuntu:
  Fix Released

Bug description:
  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.

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




More information about the foundations-bugs mailing list