Skip to content

Commit 8548eae

Browse files
committed
added missing boost check, credits to Marius Mikucionis for the patch
1 parent eee4727 commit 8548eae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/CMakeLists.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ project(PRLearn C CXX)
33
set(CMAKE_CXX_STANDARD 17)
44
set(CMAKE_INCLUDE_CURRENT_DIR ON)
55

6+
find_package(Boost 1.54 REQUIRED COMPONENTS headers REQUIRED)
67

78
add_library(prlearn SHARED ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
89
add_library(prlearnStatic STATIC ${HEADER_FILES} MLearning.cpp SimpleMLearning.cpp RefinementTree.cpp structs.cpp)
910

10-
target_include_directories (prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
11-
target_include_directories (prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
11+
target_include_directories(prlearn PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS})
12+
target_include_directories(prlearnStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS})
1213
set_target_properties(prlearnStatic PROPERTIES OUTPUT_NAME prlearn)
1314

1415

15-
install(TARGETS prlearn
16+
install(TARGETS prlearn
1617
RUNTIME DESTINATION bin
17-
LIBRARY DESTINATION lib
18+
LIBRARY DESTINATION lib
1819
ARCHIVE DESTINATION lib)
1920
install (FILES MLearning.h
2021
propts.h

0 commit comments

Comments
 (0)