Skip to content

Commit

Permalink
Merge pull request #67 from gcarnevamicrosoft/enable-Windows-controlF…
Browse files Browse the repository at this point in the history
…lowGuard

Enable Control Flow Guard for Windows Build
  • Loading branch information
DennisDyallo authored Mar 11, 2024
2 parents 82a32ef + 5c2394f commit 19ee58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Yubico.NativeShims/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ elseif(NOT MSVC)
string(CONCAT CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}
" -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports.gnu")
else()
#enable control flow guard for windows
string(CONCAT CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}
" /def:\"${CMAKE_CURRENT_SOURCE_DIR}/exports.msvc\"")
" /guard:cf /def:\"${CMAKE_CURRENT_SOURCE_DIR}/exports.msvc\"")
endif()


Expand Down

0 comments on commit 19ee58b

Please sign in to comment.