Skip to content

Commit

Permalink
Merge pull request #10 from vthiebaut10/add-qspectre-compiler-option
Browse files Browse the repository at this point in the history
Add qspectre compiler option
  • Loading branch information
anmenaga authored Dec 6, 2022
2 parents e6761a3 + 9af5679 commit b0af261
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ if(MSVC)
add_definitions(-DUSE_WINHELLO)
endif()
set(NFC_LINUX OFF)

add_compile_options(/Qspectre) # add Spectre mitigation compiler option. (https://docs.microsoft.com/en-us/cpp/build/reference/qspectre?view=vs-2017)

else()
include(FindPkgConfig)
pkg_search_module(CBOR libcbor)
Expand Down

0 comments on commit b0af261

Please sign in to comment.