summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-GNU.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-12-13 16:14:59 +0100
committerCraig Scott <craig.scott@crascit.com>2018-12-19 19:41:27 +1100
commitf255280fd908e4ef1af5eba6230e81b74d339855 (patch)
tree2fcccac786e1b8e967c57e9e9230d30040177a2a /Modules/Platform/Windows-GNU.cmake
parent3bd814460161f3af682e116aa561efcc30793eff (diff)
downloadcmake-f255280fd908e4ef1af5eba6230e81b74d339855.tar.gz
PIE link options: Update strategy to fix performance regression
Fixes: #18700
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r--Modules/Platform/Windows-GNU.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 2e854e55fe..71189b169b 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -72,6 +72,7 @@ macro(__windows_compiler_gnu lang)
# No -fPIC on Windows
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "")
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "")
+ set(_CMAKE_${lang}_PIE_MAY_BE_SUPPORTED_BY_LINKER NO)
set(CMAKE_${lang}_LINK_OPTIONS_PIE "")
set(CMAKE_${lang}_LINK_OPTIONS_NO_PIE "")
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "")