[Openmp-commits] [PATCH] D53479: [Cmake] Allowed OpenMP testing with same generator

Peiyuan Song via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Oct 21 07:32:52 PDT 2018


SquallATF created this revision.
Herald added subscribers: openmp-commits, guansong, mgorny.

fix ninja build create testing failed.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D53479

Files:
  cmake/OpenMPTesting.cmake


Index: cmake/OpenMPTesting.cmake
===================================================================
--- cmake/OpenMPTesting.cmake
+++ cmake/OpenMPTesting.cmake
@@ -99,7 +99,7 @@
   # 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53479.170335.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181021/68520c8c/attachment.bin>


More information about the Openmp-commits mailing list