Skip to content

Commit

Permalink
#178: add missing detector library path
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Apr 3, 2018
1 parent 9c04355 commit 037b893
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ if(NOT CMAKE_DETECTOR_PATH)
message(FATAL_ERROR "Detector library not found")
else()
include_directories(${CMAKE_DETECTOR_PATH}/include/)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_DETECTOR_PATH}/lib")
# include_directories(${CMAKE_DETECTOR_PATH}/src/)
set(DETECTOR_LIBRARY detection)
message("Detector library found: ${CMAKE_DETECTOR_PATH}")
Expand All @@ -126,6 +127,7 @@ else()
add_compile_options(-DHAS_SERIALIZATION_LIBRARY=1)
add_subdirectory(${CMAKE_SERIALIZATION_PATH} ${CMAKE_CURRENT_BINARY_DIR}/serialization)
include_directories(${CMAKE_SERIALIZATION_PATH}/src/)
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${CMAKE_SERIALIZATION_PATH}/lib")
set(SERIALIZATION_LIBRARY serialization)
message("Serialization library found: ${CMAKE_SERIALIZATION_PATH}")
endif()
Expand Down Expand Up @@ -306,6 +308,7 @@ foreach(PERF_TEST ${PROJECT_PERF_TESTS})
${MPI_C_LIBRARIES}
${FCONTEXT_LIBRARY}
${SERIALIZATION_LIBRARY}
${DETECTOR_LIBRARY}
)
endforeach()

Expand Down Expand Up @@ -383,8 +386,9 @@ else()
${MPI_C_LIBRARIES}
${FCONTEXT_LIBRARY}
${SERIALIZATION_LIBRARY}
${DETECTOR_LIBRARY}
gtest gmock
)
)

foreach(PROC ${UNIT_TEST_PROC_TEST_LIST})
add_test(
Expand Down

0 comments on commit 037b893

Please sign in to comment.