From 4f31b9ff4c3f23ff2f3fa418cc1a1b3b5ce8ddc8 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Fri, 12 Feb 2016 23:55:08 +0100 Subject: [PATCH] Many supported systems don't have boost >= 1.56. Link it statically. --- utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.cmake b/utils.cmake index 18a0edf2..9394f2bd 100644 --- a/utils.cmake +++ b/utils.cmake @@ -40,10 +40,10 @@ endfunction(target_enable_style_warnings) ################################################## function(target_add_boost TARGET) # Load boost libraries + set(Boost_USE_STATIC_LIBS ON) # Many supported systems don't have boost >= 1.56. Better link it statically. find_package(Boost 1.56.0 REQUIRED COMPONENTS ${ARGN}) - set(Boost_USE_STATIC_LIBS ON) target_include_directories(${TARGET} SYSTEM PRIVATE ${Boost_INCLUDE_DIRS}) target_link_libraries(${TARGET} PRIVATE ${Boost_LIBRARIES}) endfunction(target_add_boost)