summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-02 01:00:40 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-02 01:00:40 +0000
commite2abe051745efbddc58402bd6240aa91e821fe8f (patch)
tree5c4e56bebcf4d895d29ed9330bda49fce49cd598 /cmake
parentaa1fa29423c8932a3f9d8e7beb496f28eeaa9bb0 (diff)
downloadexternal_llvm-e2abe051745efbddc58402bd6240aa91e821fe8f.zip
external_llvm-e2abe051745efbddc58402bd6240aa91e821fe8f.tar.gz
external_llvm-e2abe051745efbddc58402bd6240aa91e821fe8f.tar.bz2
CMake: Always include the CheckCXXCompilerFlag in HandleLLVMOptions.cmake.
Previously we relied on it being included by config-ix.cmake. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake
index 9121080..a83be41 100644
--- a/cmake/modules/HandleLLVMOptions.cmake
+++ b/cmake/modules/HandleLLVMOptions.cmake
@@ -4,6 +4,7 @@
include(AddLLVMDefinitions)
include(CheckCCompilerFlag)
+include(CheckCXXCompilerFlag)
if( CMAKE_COMPILER_IS_GNUCXX )
set(LLVM_COMPILER_IS_GCC_COMPATIBLE ON)
@@ -66,7 +67,6 @@ if( LLVM_ENABLE_PIC )
elseif( WIN32 OR CYGWIN)
# On Windows all code is PIC. MinGW warns if -fPIC is used.
else()
- include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
if( SUPPORTS_FPIC_FLAG )
message(STATUS "Building with -fPIC")