minor cmake fix

GitOrigin-RevId: 539498b3ade92f5faca4d63c8ecf3c80783caad7
This commit is contained in:
Arseny Smirnov 2018-03-06 16:28:43 +03:00
parent ef92fb36ea
commit bc75542960

View File

@ -36,9 +36,9 @@ if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
endif()
if (GCC OR CLANG)
target_compile_options(tdsqlite PRIVATE "-Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-const-variable -Wno-unused-function")
target_compile_options(tdsqlite PRIVATE -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-const-variable -Wno-unused-function)
if (CLANG)
target_compile_options(tdsqlite PRIVATE "-Wno-parentheses-equality -Wno-unused-value")
target_compile_options(tdsqlite PRIVATE -Wno-parentheses-equality -Wno-unused-value)
endif()
elseif (MSVC)
target_compile_options(tdsqlite PRIVATE /wd4996)