From 38b0698dc9db9565eb96280a3443d7f17c331a0c Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 11 Apr 2013 10:54:20 +0200 Subject: [PATCH] Search for static libs first. --- scripts/cmake/ExternalProjectBoost.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/ExternalProjectBoost.cmake b/scripts/cmake/ExternalProjectBoost.cmake index 3d5a6305c28..484d8bdb8db 100644 --- a/scripts/cmake/ExternalProjectBoost.cmake +++ b/scripts/cmake/ExternalProjectBoost.cmake @@ -28,7 +28,7 @@ SET(BOOST_LIBS_TO_BUILD # First check for system boost IF(NOT Boost_INCLUDE_DIRS) - SET(Boost_USE_STATIC_LIBS OFF) + SET(Boost_USE_STATIC_LIBS ON) IF(OGS_LIBS_DIR) SET(BOOST_ROOT ${OGS_LIBS_DIR}/boost) ENDIF() @@ -37,7 +37,7 @@ IF(NOT Boost_INCLUDE_DIRS) ENDIF() FIND_PACKAGE(Boost 1.46.0 COMPONENTS ${BOOST_LIBS_TO_BUILD}) IF(NOT Boost_FOUND) - SET(Boost_USE_STATIC_LIBS ON) + SET(Boost_USE_STATIC_LIBS OFF) FIND_PACKAGE(Boost 1.46.0 COMPONENTS ${BOOST_LIBS_TO_BUILD}) ENDIF() IF(Boost_FOUND) -- GitLab