From dfd307da5145dd4ab72729c0484021995894775e Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Thu, 4 Sep 2008 14:04:49 +0000 Subject: [PATCH] Fixed incorrect selection of 'static' boost libraries --- Installation/cmake/modules/FindCGALDependencies.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Installation/cmake/modules/FindCGALDependencies.cmake b/Installation/cmake/modules/FindCGALDependencies.cmake index 364c2b1682e..76e7dcfb868 100644 --- a/Installation/cmake/modules/FindCGALDependencies.cmake +++ b/Installation/cmake/modules/FindCGALDependencies.cmake @@ -1,6 +1,8 @@ include(MacroFindOptionalCGALDependency) -set(Boost_USE_STATIC_LIBS ON) +if ( NOT BUILD_SHARED_LIBS ) + set(Boost_USE_STATIC_LIBS ON) +endif() set(Boost_FIND_VERSION 1.33.1 ) set(Boost_FIND_VERSION_MAJOR 1 )