Skip to content

Commit 931cf3c

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 dcdf3fb commit 931cf3c

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
@@ -125,7 +125,7 @@ if (${OPENMP_STANDALONE_BUILD})
125125
# project is built which is too late for detecting the compiler...
126126
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler)
127127
execute_process(
128-
COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_LIST_DIR}/DetectTestCompiler
128+
COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_SOURCE_DIR}/../openmp/cmake/DetectTestCompiler
129129
-DCMAKE_C_COMPILER=${OPENMP_TEST_C_COMPILER}
130130
-DCMAKE_CXX_COMPILER=${OPENMP_TEST_CXX_COMPILER}
131131
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler

0 commit comments

Comments
 (0)