[CMake] CMake 3.12 rc2 to rc3 Regression

Michael Jackson mike.jackson at bluequartz.net
Wed Jul 18 08:48:47 EDT 2018


There was a regression between 3.12-rc2 and 3.12-rc3 where we can no longer add files to a target unless it was built in the directory that is currently being cmaked? Hard to explain, I'll let my error message help out:

In CMake 3.12-rc3 and the 3.12 Official Release I get the following:

-- TransformationPhase [ENABLED] 3 Filters
-- Plugin: Defining UCSBUtilities_SOURCE_DIR to /Users/mjackson/DREAM3D-Dev/DREAM3D/ExternalProjects/Plugins/UCSBUtilities
CMake Error at ExternalProjects/SIMPL/Wrapping/Python/Pybind11/cmake/WrappingFunctions.cmake:144 (target_link_libraries):
  Attempt to add link library "UCSBUtilitiesServer" to target "dream3d_py"
  which is not built in this directory.
Call Stack (most recent call first):
  ExternalProjects/Plugins/UCSBUtilities/CMakeLists.txt:242 (CreatePybind11Module)

In CMake 3.12 rc2 and earlier I don't get the error message. I was trying to keep up with the RCs but just got back from travel to test the release. We were counting on that new feature for a few aspects of our project. Was the feature pulled due to bugs?

--
Michael Jackson | Owner, President
      BlueQuartz Software
[e] mike.jackson at bluequartz.net
[w] www.bluequartz.net <http://www.bluequartz.net>




More information about the CMake mailing list