From 600041b2a6299c2943dd65ed660db05686ed497c Mon Sep 17 00:00:00 2001 From: Travis Gockel Date: Fri, 22 Jan 2016 15:50:52 -0700 Subject: [PATCH] CMake: Always find Boost, since we use boost::lexical_cast. --- CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40aa80e..8bb809d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,14 +114,12 @@ include_directories("${PROJECT_SOURCE_DIR}/include" "${PROJECT_SOURCE_DIR}/src" ) -if (REQUIRED_BOOST_LIBRARIES) - set(Boost_USE_MULTITHREADED ON) - find_package(Boost - COMPONENTS ${REQUIRED_BOOST_LIBRARIES} - REQUIRED - ) - include_directories(${Boost_INCLUDE_DIRS}) -endif(REQUIRED_BOOST_LIBRARIES) +set(Boost_USE_MULTITHREADED ON) +find_package(Boost + COMPONENTS "${REQUIRED_BOOST_LIBRARIES}" + REQUIRED + ) +include_directories(${Boost_INCLUDE_DIRS}) add_definitions("-DJSONV_TEST_DATA_DIR=\"${CMAKE_SOURCE_DIR}/src/jsonv-tests/data\"")