summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-08-01 18:04:07 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-08-01 18:04:07 +0000
commitdf263de386fe4593a526e329e8c538ad54ce487d (patch)
treefe67cb07047717ead080756c2fa5a5c899f01309 /cmake
parent4da77f8d5f1fe4977b037afc110bc9b23bb2c350 (diff)
downloadexternal_llvm-df263de386fe4593a526e329e8c538ad54ce487d.zip
external_llvm-df263de386fe4593a526e329e8c538ad54ce487d.tar.gz
external_llvm-df263de386fe4593a526e329e8c538ad54ce487d.tar.bz2
Pass -G argument to cmake with the same generator's name as used for the
initial cmake invocation. Patch reviewed by Reid Kleckner. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TableGen.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index e3bdd9c..7a1d4a1 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -66,7 +66,8 @@ if(CMAKE_CROSSCOMPILING)
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release
- -DLLVM_BUILD_POLLY=OFF ${CMAKE_SOURCE_DIR}
+ -DLLVM_BUILD_POLLY=OFF
+ -G "${CMAKE_GENERATOR}" ${CMAKE_SOURCE_DIR}
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
DEPENDS ${CX_NATIVE_TG_DIR}
COMMENT "Configuring native TableGen...")