Tidy up MSVC CMake configuration

This commit is contained in:
Edward Hennis
2017-04-24 20:37:47 -04:00
committed by Nik Bougalis
parent d471e533b7
commit 6f10fe8502

View File

@@ -320,8 +320,11 @@ macro(use_boost)
set(Boost_USE_STATIC_LIBS on)
set(Boost_USE_MULTITHREADED on)
set(Boost_USE_STATIC_RUNTIME off)
find_package(Boost COMPONENTS
${ARGN})
if(MSVC)
find_package(Boost REQUIRED)
else()
find_package(Boost REQUIRED ${ARGN})
endif()
if (Boost_FOUND OR
((CYGWIN OR WIN32) AND Boost_INCLUDE_DIRS AND Boost_LIBRARY_DIRS))