Skip to content

Commit 7ac367d

Browse files
committed
Remove unnecessary HPX lib check
1 parent 192a9bd commit 7ac367d

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

tests/backends/HPX/CMakeLists.txt

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
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
810
set(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
4320
add_executable(${PLSSVM_HPX_TEST_NAME} ${CMAKE_CURRENT_LIST_DIR}/../../hpx_main.cpp ${PLSSVM_HPX_TEST_SOURCES})
4421

0 commit comments

Comments
 (0)