Skip to content

Commit b0af261

Browse files
authored
Merge pull request #10 from vthiebaut10/add-qspectre-compiler-option
Add qspectre compiler option
2 parents e6761a3 + 9af5679 commit b0af261

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ if(MSVC)
197197
add_definitions(-DUSE_WINHELLO)
198198
endif()
199199
set(NFC_LINUX OFF)
200+
201+
add_compile_options(/Qspectre) # add Spectre mitigation compiler option. (https://docs.microsoft.com/en-us/cpp/build/reference/qspectre?view=vs-2017)
202+
200203
else()
201204
include(FindPkgConfig)
202205
pkg_search_module(CBOR libcbor)

0 commit comments

Comments
 (0)