Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-10-23 17:24:59 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-23 17:26:28 +0300
commitd481feda13f45e1f5a25b48d5b40a00d6569e021 (patch)
treec419e16aa6026800af33fee20acc69e3432de632 /CMakeLists.txt
parent18bbefcd61681c064fcd445d4ba052f16f89835a (diff)
Fix for unsupported cmake feature
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dde5a51f3..f9c0469f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,7 +283,14 @@ endfunction()
if(TARGET Boost::system)
message(STATUS "Boost::boost exists")
target_link_libraries(boost_headeronly INTERFACE Boost::boost)
- list(TRANSFORM _boost_components PREPEND Boost:: OUTPUT_VARIABLE _boost_targets)
+
+ # Only from cmake 3.12
+ # list(TRANSFORM _boost_components PREPEND Boost:: OUTPUT_VARIABLE _boost_targets)
+ set(_boost_targets "")
+ foreach(comp ${_boost_components})
+ list(APPEND _boost_targets "Boost::${comp}")
+ endforeach()
+
target_link_libraries(boost_libs INTERFACE
boost_headeronly # includes the custom compile definitions as well
${_boost_targets}