cmake errors when used as sub-project via add_subdirectory() #555
Closed
Description
If I try using the beta as a sub-project in a bigger system, via ADD_SUBDIRECTORY(src/ext/openexr) in my top-level CMakeLists.txt file, I get the errors below. (I don't see these if I just build OpenEXR as is.)
- Configure ILMBASE Version: 2.4.0 Lib API: 24.0.0
CMake Error at src/ext/openexr/IlmBase/config/CMakeLists.txt:28 (set_target_properties):
Attempt to promote imported target "Threads::Threads" to global scope (by
setting IMPORTED_GLOBAL) which is not built in this directory.
-- Configure OpenEXR Version: 2.4.0 Lib API: 24.0.0
CMake Error at src/ext/openexr/OpenEXR/config/CMakeLists.txt:53 (set_target_properties):
Attempt to promote imported target "ZLIB::ZLIB" to global scope (by setting
IMPORTED_GLOBAL) which is not built in this directory.
Metadata
Assignees
Labels
No labels