[Liblas-commits] hg-main-tree: Added conditional
BOOST_TEST_DYN_LINK option for t...
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Mar 16 10:45:58 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/ceb2773302bf
changeset: 270:ceb2773302bf
user: Pete Gadomski <pete.gadomski at gmail.com>
date: Wed Mar 16 10:45:51 2011 -0400
description:
Added conditional BOOST_TEST_DYN_LINK option for testing
diffstat:
test/unit/CMakeLists.txt | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 1d218d135e1d -r ceb2773302bf test/unit/CMakeLists.txt
--- a/test/unit/CMakeLists.txt Wed Mar 16 09:42:59 2011 -0500
+++ b/test/unit/CMakeLists.txt Wed Mar 16 10:45:51 2011 -0400
@@ -49,6 +49,12 @@
if (MSVC)
add_definitions("-DBOOST_TEST_DYN_LINK")
endif()
+else()
+ if(Boost_PROGRAM_OPTIONS_LIBRARY MATCHES "\\.a$")
+ # pass, we can compile static
+ else()
+ add_definitions("-DBOOST_TEST_DYN_LINK")
+ endif()
endif()
TARGET_LINK_LIBRARIES(${LIBPC_UNIT_TEST}
More information about the Liblas-commits
mailing list