File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -245,5 +245,5 @@ endif()
245245# Testing
246246
247247if (HWLOC_ENABLE_TESTING)
248- add_subdirectory (${TOPDIR} / tests/hwloc ${CMAKE_CURRENT_BINARY_DIR} /tests/hwloc )
248+ add_subdirectory (tests ${CMAKE_CURRENT_BINARY_DIR} /tests)
249249endif ()
Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ foreach(t api_version backends bind
66 groups insert_misc iodevs is_thissystem list_components object_userdata pci_backend synthetic
77 topology_abi topology_allow topology_diff topology_dup topology_restrict type_depth type_sscanf
88)
9- add_executable (hwloc_${t} hwloc_${t} .c)
9+ add_executable (hwloc_${t} ${TOPDIR} /tests/hwloc/ hwloc_${t} .c)
1010 target_link_libraries (hwloc_${t} PRIVATE hwloc)
1111
1212 add_test (NAME ${t} COMMAND hwloc_${t} WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
1313 set_tests_properties (${t} PROPERTIES TIMEOUT 10)
1414endforeach ()
1515
1616foreach (t cpuset_nodeset memattrs cpukinds infos gl windows_processor_groups)
17- add_executable (${t} ${t} .c)
17+ add_executable (${t} ${TOPDIR} /tests/hwloc/ ${ t} .c)
1818 target_link_libraries (${t} PRIVATE hwloc)
1919
2020 add_test (NAME ${t} COMMAND ${t} WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
2121 set_tests_properties (${t} PROPERTIES TIMEOUT 10)
2222endforeach ()
2323
24- add_executable (xmlbuffer xmlbuffer.c)
24+ add_executable (xmlbuffer ${TOPDIR} /tests/hwloc/ xmlbuffer.c)
2525target_link_libraries (xmlbuffer PRIVATE hwloc)
2626add_test (NAME xmlbuffer00 COMMAND xmlbuffer 0 0 WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
2727add_test (NAME xmlbuffer01 COMMAND xmlbuffer 0 1 WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
Original file line number Diff line number Diff line change @@ -168,5 +168,4 @@ EXTRA_DIST = embedded/autogen.sh \
168168 embedded/main.c \
169169 embedded/run-embedded-tests.sh \
170170 embedded/README.txt \
171- embedded/config/README.txt \
172- CMakeLists.txt
171+ embedded/config/README.txt
You can’t perform that action at this time.
0 commit comments