Skip to content

Commit 2384a06

Browse files
mgornytru
authored andcommitted
[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 b70bf59 commit 2384a06

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)