Skip to content

Commit 574f5e5

Browse files
committed
move qspectre compiler option outside of the if statement AGAIN
1 parent 265384f commit 574f5e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

+3-2
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)
@@ -282,8 +285,6 @@ else()
282285
add_compile_options(-pedantic)
283286
add_compile_options(-pedantic-errors)
284287

285-
add_compile_options(/Qspectre) # add Spectre mitigation compiler option. (https://docs.microsoft.com/en-us/cpp/build/reference/qspectre?view=vs-2017)
286-
287288
set(EXTRA_CFLAGS "-Wconversion -Wsign-conversion")
288289

289290
if(WIN32)

0 commit comments

Comments
 (0)