mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
cmake fix for threading
This commit is contained in:
parent
c93cdf5c5a
commit
e8b0565164
@ -55,6 +55,7 @@ file(CREATE_LINK ${eigen3_SOURCE_DIR}/Eigen
|
||||
${CMAKE_SOURCE_DIR}/lib/LatAnalyze/Eigen SYMBOLIC)
|
||||
|
||||
# dependencies
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(GSL REQUIRED)
|
||||
find_package(HDF5 REQUIRED COMPONENTS C CXX)
|
||||
find_package(Minuit2 QUIET)
|
||||
|
@ -61,7 +61,8 @@ target_sources(
|
||||
${EIGEN_HEADERS}
|
||||
${LATAN_HEADERS})
|
||||
target_link_libraries(LatAnalyze PRIVATE compiler_flags parsers tinyxml2)
|
||||
target_link_libraries(LatAnalyze PUBLIC GSL::gsl hdf5::hdf5 hdf5::hdf5_cpp)
|
||||
target_link_libraries(LatAnalyze PUBLIC GSL::gsl hdf5::hdf5 hdf5::hdf5_cpp
|
||||
${CMAKE_THREAD_LIBS_INIT})
|
||||
if(Minuit2_FOUND)
|
||||
target_link_libraries(LatAnalyze PUBLIC Minuit2::Minuit2)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user