File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,6 @@ o2_add_executable(treemergertool
9191 COMPONENT_NAME CommonUtils
9292 SOURCES src/TreeMergerTool.cxx
9393 PUBLIC_LINK_LIBRARIES O2::CommonUtils Boost::program_options ROOT::Core)
94+
95+ add_library (fpu_support OBJECT src/fpu.cxx)
96+ add_library (O2::fpu_support ALIAS fpu_support)
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ function(o2_add_executable baseTargetName)
9292 endif ()
9393
9494 # add the executable with its sources
95- add_executable (${target} ${A_SOURCES} ${CMAKE_SOURCE_DIR} /Common/Utils/src/fpu.cxx )
95+ add_executable (${target} ${A_SOURCES} )
9696
9797 # set the executable output name
9898 set_property (TARGET ${target} PROPERTY OUTPUT_NAME ${exeName} )
@@ -118,6 +118,7 @@ function(o2_add_executable baseTargetName)
118118
119119 # needed for fpu.c
120120 target_link_libraries (${target} PUBLIC ROOT::XMLIO)
121+ target_link_libraries (${target} PUBLIC O2::fpu_support)
121122
122123 if (NOT A_NO_INSTALL)
123124 # install the executable
You can’t perform that action at this time.
0 commit comments