Skip to content

Commit 1b72150

Browse files
committed
[cmake] Use DetectTestCompiler from openmp directory
Fix the DetectTestCompiler project use to reference the openmp source tree, since the respective files were not copied to offload, and there is no point in duplicating them. Fixes #90333
1 parent aa33bf7 commit 1b72150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/cmake/OpenMPTesting.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if (${OPENMP_STANDALONE_BUILD})
124124
# project is built which is too late for detecting the compiler...
125125
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler)
126126
execute_process(
127-
COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_LIST_DIR}/DetectTestCompiler
127+
COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../openmp/cmake/DetectTestCompiler
128128
-DCMAKE_C_COMPILER=${OPENMP_TEST_C_COMPILER}
129129
-DCMAKE_CXX_COMPILER=${OPENMP_TEST_CXX_COMPILER}
130130
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler

0 commit comments

Comments
 (0)