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.
This commit is contained in:
Brad King committed 2012-09-19 14:08:45 -04:00
1 parent 6e34aea93c
commit ada9efd3af
1 file changed
+1
+1
View File
@@ -22,4 +22,5 @@ include(Compiler/GNU)
macro(__compiler_clang lang)
__compiler_gnu(${lang})
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE")
endmacro()