Github #226 Use correct paths returned by FindBoost.cmake
authorMatthew Bentham <matthew.bentham@arm.com>
Fri, 12 Jul 2019 16:26:57 +0000 (17:26 +0100)
committerÁron Virginás-Tar <aron.virginas-tar@arm.com>
Mon, 15 Jul 2019 13:56:29 +0000 (13:56 +0000)
According to the documentation in FindBoost.cmake these
are the correct output variables.

Change-Id: If56874aaafe1577888f73719f0a493088d1ac531
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
cmake/GlobalConfig.cmake

index 39926c0..26b3ff4 100644 (file)
@@ -108,8 +108,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_P
 add_definitions("-DBOOST_ALL_NO_LIB") # Turn off auto-linking as we specify the libs manually
 set(Boost_USE_STATIC_LIBS ON)
 find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework system filesystem log program_options)
-include_directories(SYSTEM "${Boost_INCLUDE_DIR}")
-link_directories(${Boost_LIBRARY_DIR})
+include_directories(SYSTEM "${Boost_INCLUDE_DIRS}")
+link_directories(${Boost_LIBRARY_DIRS})
 
 # pthread
 find_package (Threads)