Skip to content

Commit 19ee58b

Browse files
authored
Merge pull request #67 from gcarnevamicrosoft/enable-Windows-controlFlowGuard
Enable Control Flow Guard for Windows Build
2 parents 82a32ef + 5c2394f commit 19ee58b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Yubico.NativeShims/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ elseif(NOT MSVC)
2525
string(CONCAT CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}
2626
" -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports.gnu")
2727
else()
28+
#enable control flow guard for windows
2829
string(CONCAT CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}
29-
" /def:\"${CMAKE_CURRENT_SOURCE_DIR}/exports.msvc\"")
30+
" /guard:cf /def:\"${CMAKE_CURRENT_SOURCE_DIR}/exports.msvc\"")
3031
endif()
3132

3233

0 commit comments

Comments
 (0)