File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed
Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change 44## See the LICENSE.md file in the project root for full license information.
55########################################################################################################################
66
7+ find_package (HPX 1.9.0)
8+
79## create HPX tests
810set (PLSSVM_HPX_TEST_NAME HPX_tests)
911
@@ -14,31 +16,6 @@ set(PLSSVM_HPX_TEST_SOURCES
1416 ${CMAKE_CURRENT_LIST_DIR} /hpx_csvm.cpp
1517)
1618
17- # check if HPX can be enabled
18- message (CHECK_START "Checking for HPX backend" )
19-
20- find_package (HPX 1.9.0)
21-
22- if (NOT HPX_FOUND)
23- message (CHECK_FAIL "not found" )
24- if (PLSSVM_ENABLE_HPX_BACKEND MATCHES "ON" )
25- message (SEND_ERROR "Cannot find requested backend: HPX!" )
26- endif ()
27- return ()
28- else ()
29- if (NOT DEFINED PLSSVM_CPU_TARGET_ARCHS)
30- if (PLSSVM_ENABLE_HPX_BACKEND MATCHES "ON" )
31- message (SEND_ERROR "Found requested HPX backend, but no \" cpu\" targets were specified!" )
32- else ()
33- message (STATUS "Found HPX backend, but no \" cpu\" targets were specified!" )
34- endif ()
35- message (CHECK_FAIL "skipped" )
36- return ()
37- endif ()
38- endif ()
39- message (CHECK_PASS "found " )
40-
41-
4219# add test executable
4320add_executable (${PLSSVM_HPX_TEST_NAME} ${CMAKE_CURRENT_LIST_DIR} /../../hpx_main.cpp ${PLSSVM_HPX_TEST_SOURCES} )
4421
You can’t perform that action at this time.
0 commit comments