mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-12-06 00:01:28 -05:00
Ignore some warninngs on Windows.
This commit is contained in:
parent
7c083329f3
commit
ee9680eaac
@ -18,6 +18,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
# the "{0}" structure initializer is used.
|
||||
add_compile_options(-Wno-missing-braces)
|
||||
endif()
|
||||
if(WIN32)
|
||||
add_compile_options(/wd4133)
|
||||
endif()
|
||||
|
||||
set(SRCS kem_sike.c
|
||||
P434/P434.c
|
||||
|
||||
@ -9,6 +9,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wno-error)
|
||||
endif()
|
||||
endif()
|
||||
if(WIN32)
|
||||
add_compile_options(/wd4244 /wd4267 /wd4334)
|
||||
endif()
|
||||
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND
|
||||
OQS_USE_AVX2_INSTRUCTIONS AND
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
if(ARCH STREQUAL "x86")
|
||||
set(CPP_DEFS _X86_)
|
||||
elseif(ARCH STREQUAL "x86_64")
|
||||
@ -27,7 +29,11 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux"
|
||||
else()
|
||||
set(CPP_DEFS ${CPP_DEFS} portable)
|
||||
endif()
|
||||
if(WIN32)
|
||||
add_compile_options(/wd4244)
|
||||
endif()
|
||||
|
||||
add_library(qtesla OBJECT ${SRCS})
|
||||
target_include_directories(qtesla PRIVATE external)
|
||||
target_compile_definitions(qtesla PRIVATE ${CPP_DEFS})
|
||||
|
||||
|
||||
@ -12,6 +12,9 @@ if (MINGW OR MSYS OR CYGWIN)
|
||||
add_compile_options(-Wno-unknown-pragmas)
|
||||
add_compile_options(-Wno-unused-parameter)
|
||||
endif()
|
||||
if(WIN32)
|
||||
add_compile_options(/wd4244 /wd4996)
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
set(LIBM m)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user