Skip to content
Snippets Groups Projects
Commit 71869abb authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

fixed bug introduced for MacOS improvements

parent b83e29e3
Branches
Tags
No related merge requests found
......@@ -89,6 +89,8 @@ if(WITH_DEBUG)
target_compile_definitions(${LIBNAME} PUBLIC WITH_DEBUG)
endif()
## Manually specify -lc++fs in case of MacOS
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(${LIBNAME}
PUBLIC ${CXX_FILESYSTEM_LIB}
PUBLIC
......@@ -98,6 +100,17 @@ target_link_libraries(${LIBNAME}
PUBLIC fmt::fmt
c++fs
)
else ()
target_link_libraries(${LIBNAME}
PUBLIC ${CXX_FILESYSTEM_LIB}
PUBLIC
${PROJECT_NAME}::Decode
ROOT::Core
PUBLIC spdlog::spdlog
PUBLIC fmt::fmt
)
endif()
set_target_properties(${LIBNAME} PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
VERSION ${PROJECT_VERSION}
......
......@@ -14,6 +14,8 @@ endif()
set(ANALYZER analyzer)
add_executable(${ANALYZER} analyzer.cxx)
## Manually specify -lc++fs in case of MacOS
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(${ANALYZER}
PRIVATE
Podd::HallA
......@@ -21,6 +23,15 @@ target_link_libraries(${ANALYZER}
PRIVATE fmt::fmt
c++fs
)
else ()
target_link_libraries(${ANALYZER}
PRIVATE
Podd::HallA
PRIVATE spdlog::spdlog
PRIVATE fmt::fmt
)
endif()
target_compile_options(${ANALYZER}
PUBLIC
${${PROJECT_NAME_UC}_CXX_FLAGS_LIST}
......@@ -44,6 +55,8 @@ if(${PROJECT_NAME_UC}_BUILD_UTILS)
set(DBCONVERT dbconvert)
add_executable(${DBCONVERT} dbconvert.cxx)
## Manually specify -lc++fs in case of MacOS
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(${DBCONVERT}
PRIVATE
Podd::HallA
......@@ -51,6 +64,15 @@ if(${PROJECT_NAME_UC}_BUILD_UTILS)
PRIVATE fmt::fmt
c++fs
)
else ()
target_link_libraries(${DBCONVERT}
PRIVATE
Podd::HallA
PUBLIC spdlog::spdlog
PRIVATE fmt::fmt
)
endif ()
target_compile_options(${DBCONVERT}
PRIVATE
${${PROJECT_NAME_UC}_DIAG_FLAGS_LIST}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment