From 13d183dd22c2929db8230a20151020b636273e8d Mon Sep 17 00:00:00 2001 From: Maximilien Siavelis <maximilien.siavelis@simulease.com> Date: 周六, 06 1月 2018 03:57:46 +0800 Subject: [PATCH] fix MSVC build --- CMakeLists.txt | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc755ac..49fcd95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,6 @@ endif(CMAKE_BUILD_TYPE) if(MSVC) - SET(PLATFORM_LIBS "") include(target_arch) target_architecture( TARGET_ARCHITECTURE ) @@ -68,6 +67,7 @@ SET(HAVE_64BIT_SIZE_T 0) endif(CMAKE_SIZEOF_VOID_P EQUAL 8) +set( Boost_USE_STATIC_LIBS ON ) find_package(Boost 1.55.0 COMPONENTS date_time unit_test_framework program_options system filesystem) #set below in case of dynamic linking in debug. #set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS $<$<CONFIG:Debug>:BOOST_TEST_DYN_LINK>) @@ -125,8 +125,3 @@ message( STATUS "Build type: " ${CMAKE_BUILD_TYPE}) endif(CMAKE_BUILD_TYPE) message( STATUS "Install prefix: " ${CMAKE_INSTALL_PREFIX}) -if(DOXYGEN_FOUND) - message(STATUS "Doxygen: " ${DOXYGEN_EXECUTABLE}) -else(DOXYGEN_FOUND) - message(STATUS "Doxygen: not found.") -endif(DOXYGEN_FOUND) -- Gitblit v1.9.1