We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad456c6 + bfd9649 commit 2a9438eCopy full SHA for 2a9438e
CMakeLists.txt
@@ -18,7 +18,11 @@ option(TURTLE_INSTALL "Enable to add install target" ${IS_ROOT_PROJECT})
18
if(WIN32 AND NOT DEFINED Boost_USE_STATIC_LIBS)
19
set(Boost_USE_STATIC_LIBS ON)
20
endif()
21
-find_package(Boost 1.58 REQUIRED)
+
22
+# Allows boost to be build by parent project
23
+if(NOT TARGET Boost::boost)
24
+ find_package(Boost 1.58 REQUIRED)
25
+endif()
26
27
set(MOCK_VERSION "\"${PROJECT_VERSION}\"")
28
set(_turtleVersionFile ${CMAKE_CURRENT_BINARY_DIR}/include/turtle/version.hpp)
0 commit comments