diff options
author | Brad King <brad.king@kitware.com> | 2012-09-19 18:04:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-19 18:08:45 (GMT) |
commit | ada9efd3afb710a982f28f46196d5ec53ade199b (patch) | |
tree | 559adf46f564d4430df8d2a12a33053fc2fe4412 /Modules | |
parent | 6e34aea93c71e3ac1667f93357695551e2ced09d (diff) | |
download | CMake-ada9efd3afb710a982f28f46196d5ec53ade199b.zip CMake-ada9efd3afb710a982f28f46196d5ec53ade199b.tar.gz CMake-ada9efd3afb710a982f28f46196d5ec53ade199b.tar.bz2 |
Clang: All versions know about -fPIE (#13550)
The GNU compiler information file tests for GNU >= 3.4 because earlier
versions do not have the flag. The version number test is not valid for
Clang compiler versions, but we know Clang supports the flag.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/Clang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake index f7be864..75a971d 100644 --- a/Modules/Compiler/Clang.cmake +++ b/Modules/Compiler/Clang.cmake @@ -22,4 +22,5 @@ include(Compiler/GNU) macro(__compiler_clang lang) __compiler_gnu(${lang}) + set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE") endmacro() |