Skip to content

Commit

Permalink
CMake: Always find Boost, since we use boost::lexical_cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgockel committed Jan 22, 2016
1 parent d5ad978 commit 600041b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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\"")

Expand Down

0 comments on commit 600041b

Please sign in to comment.