[Openmp-commits] [openmp] r351223 - [OpenMP][Cmake] Allowed OpenMP testing detect test compiler with same generator

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 15 11:08:26 PST 2019


Author: jlpeyton
Date: Tue Jan 15 11:08:26 2019
New Revision: 351223

URL: http://llvm.org/viewvc/llvm-project?rev=351223&view=rev
Log:
[OpenMP][Cmake] Allowed OpenMP testing detect test compiler with same generator

Fix ninja build detect test compiler failed under windows.

Patch by Peiyuan Song

Differential Revision: https://reviews.llvm.org/D53479

Modified:
    openmp/trunk/cmake/OpenMPTesting.cmake

Modified: openmp/trunk/cmake/OpenMPTesting.cmake
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/cmake/OpenMPTesting.cmake?rev=351223&r1=351222&r2=351223&view=diff
==============================================================================
--- openmp/trunk/cmake/OpenMPTesting.cmake (original)
+++ openmp/trunk/cmake/OpenMPTesting.cmake Tue Jan 15 11:08:26 2019
@@ -99,7 +99,7 @@ if (${OPENMP_STANDALONE_BUILD})
   # project is built which is too late for detecting the compiler...
   file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler)
   execute_process(
-    COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_LIST_DIR}/DetectTestCompiler
+    COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_LIST_DIR}/DetectTestCompiler
       -DCMAKE_C_COMPILER=${OPENMP_TEST_C_COMPILER}
       -DCMAKE_CXX_COMPILER=${OPENMP_TEST_CXX_COMPILER}
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler




More information about the Openmp-commits mailing list