Skip to content

Commit 2a9438e

Browse files
authored
Merge pull request #132 from Farmer-Markus/android
Added boost source build support
2 parents ad456c6 + bfd9649 commit 2a9438e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ option(TURTLE_INSTALL "Enable to add install target" ${IS_ROOT_PROJECT})
1818
if(WIN32 AND NOT DEFINED Boost_USE_STATIC_LIBS)
1919
set(Boost_USE_STATIC_LIBS ON)
2020
endif()
21-
find_package(Boost 1.58 REQUIRED)
21+
22+
# Allows boost to be build by parent project
23+
if(NOT TARGET Boost::boost)
24+
find_package(Boost 1.58 REQUIRED)
25+
endif()
2226

2327
set(MOCK_VERSION "\"${PROJECT_VERSION}\"")
2428
set(_turtleVersionFile ${CMAKE_CURRENT_BINARY_DIR}/include/turtle/version.hpp)

0 commit comments

Comments
 (0)