Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Common/Utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ o2_add_executable(treemergertool
COMPONENT_NAME CommonUtils
SOURCES src/TreeMergerTool.cxx
PUBLIC_LINK_LIBRARIES O2::CommonUtils Boost::program_options ROOT::Core)

add_library(fpu_support OBJECT src/fpu.cxx)
add_library(O2::fpu_support ALIAS fpu_support)
3 changes: 2 additions & 1 deletion cmake/O2AddExecutable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function(o2_add_executable baseTargetName)
endif()

# add the executable with its sources
add_executable(${target} ${A_SOURCES} ${CMAKE_SOURCE_DIR}/Common/Utils/src/fpu.cxx)
add_executable(${target} ${A_SOURCES})

# set the executable output name
set_property(TARGET ${target} PROPERTY OUTPUT_NAME ${exeName})
Expand All @@ -118,6 +118,7 @@ function(o2_add_executable baseTargetName)

# needed for fpu.c
target_link_libraries(${target} PUBLIC ROOT::XMLIO)
target_link_libraries(${target} PUBLIC O2::fpu_support)

if(NOT A_NO_INSTALL)
# install the executable
Expand Down