File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ set(PLSSVM_HPX_SOURCES
4040# set target properties
4141set_local_and_parent(PLSSVM_HPX_BACKEND_LIBRARY_NAME plssvm-HPX)
4242add_library (${PLSSVM_HPX_BACKEND_LIBRARY_NAME} SHARED ${PLSSVM_HPX_SOURCES} )
43- target_link_libraries (${PLSSVM_HPX_BACKEND_LIBRARY_NAME} PUBLIC HPX::hpx)
43+ target_link_libraries (${PLSSVM_HPX_BACKEND_LIBRARY_NAME} PUBLIC HPX::hpx HPX::wrap_main )
4444
4545# additional compilation flags
4646target_compile_options (${PLSSVM_HPX_BACKEND_LIBRARY_NAME} PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-Wconversion>)
Original file line number Diff line number Diff line change 1515
1616#include < cstdlib> // std::atexit
1717
18+ #if defined(PLSSVM_HAS_HPX_BACKEND)
19+ // Workaround as Scope Guard not working properly with Google Test
20+ // Run the entire main function in HPX rutime
21+ #include < hpx/hpx_main.hpp>
22+ #endif
23+
1824// silence GTest warnings/test errors
1925
2026// generic CSVM tests
You can’t perform that action at this time.
0 commit comments