IMPORTED_LOCATION not set for imported target "Upstream::amici"
Closed this issue · 1 comments
dweindl commented
Since today on GHA with cmake==3.29.3:
CMake Error in CMakeLists.txt:
IMPORTED_LOCATION not set for imported target "Upstream::amici"
configuration "Debug".
CMake Error in CMakeLists.txt:
IMPORTED_LOCATION not set for imported target "Upstream::amici"
configuration "Debug".
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
dweindl commented
This is related to the recently released cmake-build-extension==0.6.0 which changed cmake --install
to cmake --install --config Release
. This is not compatible with setting the build type from within CMakeLists.txt. We'll have to handle that already in Python then.
This only affects amici debug builds were debugging was enabled via env ENABLE_AMICI_DEBUGGING=TRUE
instead of passing -DCMAKE_BUILD_TYPE=Debug
to cmake.