From 65ff5146ad706a9393133df44ad2abdfd5caa9c4 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Thu, 8 Jun 2017 12:54:18 +0200 Subject: [PATCH] Fix linker GUARD option (#11492) I have found that the /GUARD:CF option set in the root CMakeFiles.txt was not being propagated to the Visual C++ project files generated by cmake because of a wrong casing. The CMakeFiles.txt used /guard:cf but it works correctly only if it is all upper case. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 365133c..b85f30b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -313,8 +313,8 @@ if (WIN32) endforeach (Definition) endforeach (Config) - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /guard:cf") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /guard:cf") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /GUARD:CF") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /GUARD:CF") # Linker flags # -- 2.7.4