diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-05 23:46:34 +0000 |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2009-06-05 23:46:34 +0000 |
commit | 5d8931b1f32da14c80befa3c87c4c5f966ffdb13 (patch) | |
tree | 1eaf4dc7a831b0386b5586653499d8b7eda1d8fb /CMakeLists.txt | |
parent | 7388a9ac0d5834359ec19fbcd25a1d89b4415629 (diff) | |
download | external_llvm-5d8931b1f32da14c80befa3c87c4c5f966ffdb13.zip external_llvm-5d8931b1f32da14c80befa3c87c4c5f966ffdb13.tar.gz external_llvm-5d8931b1f32da14c80befa3c87c4c5f966ffdb13.tar.bz2 |
More portability checks for CMake's config.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0de1e08..8133398 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,11 +150,13 @@ include(config-ix) option(LLVM_ENABLE_PIC "Build Position-Independent Code" OFF) +set(ENABLE_PIC 0) if( LLVM_ENABLE_PIC ) if( SUPPORTS_FPIC_FLAG ) message(STATUS "Building with -fPIC") add_llvm_definitions(-fPIC) - else( SUPPORTS_FPIC_FLAG ) + set(ENABLE_PIC 1) + else( SUPPORTS_FPIC_FLAG ) message(STATUS "Warning: -fPIC not supported.") endif() endif() |