These are (so far):
-Wno-format-overflow
-Wno-nonnull-compare
-Wno-old-style-declaration
-Wno-unused-but-set-variable
35 files changed:
add_executable(telnet ${SOURCE} telnet.rc)
target_link_libraries(telnet cppstl)
set_target_cpp_properties(telnet WITH_EXCEPTIONS)
add_executable(telnet ${SOURCE} telnet.rc)
target_link_libraries(telnet cppstl)
set_target_cpp_properties(telnet WITH_EXCEPTIONS)
- target_compile_options(telnet PRIVATE -Wno-restrict $<$<COMPILE_LANGUAGE:CXX>:-Wno-narrowing>)
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
endif()
target_compile_definitions(telnet PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(telnet PRIVATE -Wno-restrict $<$<COMPILE_LANGUAGE:CXX>:-Wno-narrowing>)
+endif()
+
set_module_type(telnet win32cui)
add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
add_pch(telnet precomp.h SOURCE)
set_module_type(telnet win32cui)
add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
add_pch(telnet precomp.h SOURCE)
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
endif()
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
endif()
remove_target_compile_option(libtiff "/we4311")
# error C4312: 'type cast': conversion from 'int' to 'thandle_t' of greater size
remove_target_compile_option(libtiff "/we4312")
remove_target_compile_option(libtiff "/we4311")
# error C4312: 'type cast': conversion from 'int' to 'thandle_t' of greater size
remove_target_compile_option(libtiff "/we4312")
-else()
- target_compile_options(libtiff PRIVATE "-Wno-unused-but-set-variable")
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(libtiff PRIVATE -Wno-unused-but-set-variable)
add_pch(d3dwine precomp.h SOURCE)
add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)
add_pch(d3dwine precomp.h SOURCE)
add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(d3dwine PRIVATE -Wno-format-overflow)
endif()
target_compile_options(d3dwine PRIVATE -Wno-format-overflow)
endif()
set_module_type(glu32 win32dll)
if(NOT MSVC)
set_module_type(glu32 win32dll)
if(NOT MSVC)
- target_compile_options(glu32 PRIVATE -Wno-write-strings -Wno-unused-but-set-variable)
- # Prevent a warning when comparing 'this' against 0
- set_source_files_properties(src/libnurbs/internals/arc.cc PROPERTIES COMPILE_FLAGS "-Wno-nonnull-compare")
+ target_compile_options(glu32 PRIVATE -Wno-write-strings)
elseif(USE_CLANG_CL)
target_compile_options(glu32 PRIVATE -Wno-self-assign -Wno-unused-function -Wno-microsoft-include)
target_compile_options(glu32 PRIVATE -Wno-deprecated-register -Wno-tautological-undefined-compare)
endif()
elseif(USE_CLANG_CL)
target_compile_options(glu32 PRIVATE -Wno-self-assign -Wno-unused-function -Wno-microsoft-include)
target_compile_options(glu32 PRIVATE -Wno-deprecated-register -Wno-tautological-undefined-compare)
endif()
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(glu32 PRIVATE -Wno-unused-but-set-variable)
+ # Prevent a warning when comparing 'this' against 0
+ set_source_files_properties(src/libnurbs/internals/arc.cc PROPERTIES COMPILE_FLAGS "-Wno-nonnull-compare")
+endif()
+
add_importlibs(glu32 opengl32 gdi32 msvcrt kernel32 ntdll)
add_pch(glu32 precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
add_importlibs(glu32 opengl32 gdi32 msvcrt kernel32 ntdll)
add_pch(glu32 precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET glu32 DESTINATION reactos/system32 FOR all)
add_pch(browseui precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
add_pch(browseui precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(browseui PRIVATE -Wno-unused-but-set-variable)
+endif()
+
- target_compile_options(browseui PRIVATE "-Wno-unused-but-set-variable")
# Binutils linker bug
if(LTCG)
add_target_link_flags(browseui "-Wl,--allow-multiple-definition")
# Binutils linker bug
if(LTCG)
add_target_link_flags(browseui "-Wl,--allow-multiple-definition")
add_library(shellbars OBJECT ${SOURCE})
target_link_libraries(shellbars PRIVATE atl_classes)
add_library(shellbars OBJECT ${SOURCE})
target_link_libraries(shellbars PRIVATE atl_classes)
-if(NOT MSVC)
- target_compile_options(shellbars PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(shellbars PRIVATE -Wno-unused-but-set-variable)
endif()
add_pch(shellbars shellbars.h SOURCE)
endif()
add_pch(shellbars shellbars.h SOURCE)
add_library(shellfind OBJECT ${SOURCE})
target_link_libraries(shellfind PRIVATE atl_classes)
add_library(shellfind OBJECT ${SOURCE})
target_link_libraries(shellfind PRIVATE atl_classes)
-if(NOT MSVC)
- target_compile_options(shellfind PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(shellfind PRIVATE -Wno-unused-but-set-variable)
endif()
add_pch(shellfind shellfind.h SOURCE)
endif()
add_pch(shellfind shellfind.h SOURCE)
add_pch(winmm winemm.h SOURCE)
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
add_pch(winmm winemm.h SOURCE)
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
-if(NOT MSVC)
- target_compile_options(winmm PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(winmm PRIVATE -Wno-unused-but-set-variable)
endif()
add_subdirectory(midimap)
endif()
add_subdirectory(midimap)
add_library(fbtusb MODULE ${SOURCE} fbtusb.rc)
add_library(fbtusb MODULE ${SOURCE} fbtusb.rc)
-if(NOT MSVC)
- target_compile_options(fbtusb PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(fbtusb PRIVATE -Wno-unused-but-set-variable)
endif()
set_module_type(fbtusb kernelmodedriver)
endif()
set_module_type(fbtusb kernelmodedriver)
target_compile_options(ext2fs PRIVATE
-Wno-pointer-sign -Wno-unused-function
-Wno-unused-variable -Wno-missing-braces)
target_compile_options(ext2fs PRIVATE
-Wno-pointer-sign -Wno-unused-function
-Wno-unused-variable -Wno-missing-braces)
- if (NOT CLANG)
- target_compile_options(ext2fs PRIVATE -Wno-unused-but-set-variable)
- endif()
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(ext2fs PRIVATE -Wno-unused-but-set-variable)
target_compile_options(ffs PRIVATE -Wno-unused-variable -Wno-missing-braces)
if(USE_CLANG_CL)
target_compile_options(ffs PRIVATE -Wno-empty-body)
target_compile_options(ffs PRIVATE -Wno-unused-variable -Wno-missing-braces)
if(USE_CLANG_CL)
target_compile_options(ffs PRIVATE -Wno-empty-body)
- else()
- target_compile_options(ffs PRIVATE -Wno-unused-but-set-variable)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(ffs PRIVATE -Wno-unused-but-set-variable)
+endif()
+
add_definitions(-D__KERNEL__)
set_module_type(ffs kernelmodedriver)
target_link_libraries(ffs memcmp ${PSEH_LIB})
add_definitions(-D__KERNEL__)
set_module_type(ffs kernelmodedriver)
target_link_libraries(ffs memcmp ${PSEH_LIB})
target_compile_options(reiserfs PRIVATE -Wno-missing-braces -Wno-pointer-sign)
target_compile_options(reiserfs PRIVATE -Wno-unused-function -Wno-unused-variable)
if(NOT USE_CLANG_CL)
target_compile_options(reiserfs PRIVATE -Wno-missing-braces -Wno-pointer-sign)
target_compile_options(reiserfs PRIVATE -Wno-unused-function -Wno-unused-variable)
if(NOT USE_CLANG_CL)
- target_compile_options(reiserfs PRIVATE -Wno-unused-but-set-variable)
target_compile_definitions(reiserfs PRIVATE __GCC__)
endif()
else()
target_compile_definitions(reiserfs PRIVATE __GCC__)
endif()
else()
target_compile_options(reiserfs PRIVATE /wd4189 /wd4142 /wd4101)
endif()
target_compile_options(reiserfs PRIVATE /wd4189 /wd4142 /wd4101)
endif()
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(reiserfs PRIVATE -Wno-unused-but-set-variable)
+endif()
+
target_link_libraries(reiserfs memcmp ${PSEH_LIB})
add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
set_module_type(reiserfs kernelmodedriver)
target_link_libraries(reiserfs memcmp ${PSEH_LIB})
add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
set_module_type(reiserfs kernelmodedriver)
target_compile_options(udfs PRIVATE -Wno-tautological-unsigned-zero-compare -Wno-self-assign)
target_compile_options(udfs PRIVATE -Wno-sometimes-uninitialized -Wno-parentheses-equality)
endif()
target_compile_options(udfs PRIVATE -Wno-tautological-unsigned-zero-compare -Wno-self-assign)
target_compile_options(udfs PRIVATE -Wno-sometimes-uninitialized -Wno-parentheses-equality)
endif()
-else()
- target_compile_options(udfs PRIVATE "-Wno-unused-but-set-variable")
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(udfs PRIVATE -Wno-unused-but-set-variable)
endif()
set_module_type(udfs kernelmodedriver)
endif()
set_module_type(udfs kernelmodedriver)
if(NOT MSVC)
target_compile_options(netkvm PRIVATE
-Wno-unused-function
if(NOT MSVC)
target_compile_options(netkvm PRIVATE
-Wno-unused-function
- -Wno-old-style-declaration
- -Wno-unused-but-set-variable
-Wno-pointer-sign
-Wno-pointer-to-int-cast
-Wno-int-to-pointer-cast
-Wno-attributes)
endif()
-Wno-pointer-sign
-Wno-pointer-to-int-cast
-Wno-int-to-pointer-cast
-Wno-attributes)
endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(netkvm PRIVATE -Wno-old-style-declaration -Wno-unused-but-set-variable)
+endif()
CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
if(GCC)
CLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
if(GCC)
- target_compile_options(classpnp PRIVATE -Wno-unused-but-set-variable -Wno-pointer-to-int-cast -Wno-switch)
+ target_compile_options(classpnp PRIVATE -Wno-pointer-to-int-cast -Wno-switch)
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(classpnp PRIVATE -Wno-unused-but-set-variable)
endif()
set_module_type(classpnp kernelmodedriver)
endif()
set_module_type(classpnp kernelmodedriver)
- target_compile_options(disk PRIVATE -Wno-unused-but-set-variable -Wno-pointer-to-int-cast -Wno-switch)
+ target_compile_options(disk PRIVATE -Wno-pointer-to-int-cast -Wno-switch)
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(disk PRIVATE -Wno-unused-but-set-variable)
endif()
set_module_type(disk kernelmodedriver)
endif()
set_module_type(disk kernelmodedriver)
target_compile_options(uniata PRIVATE "-Wno-narrowing")
if(USE_CLANG_CL)
target_compile_options(uniata PRIVATE "-Wno-unused-const-variable")
target_compile_options(uniata PRIVATE "-Wno-narrowing")
if(USE_CLANG_CL)
target_compile_options(uniata PRIVATE "-Wno-unused-const-variable")
- else()
- target_compile_options(uniata PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(uniata PRIVATE -Wno-unused-but-set-variable)
+endif()
+
add_pch(uniata stdafx.h SOURCE)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
add_pch(uniata stdafx.h SOURCE)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
set_module_type(symdump win32cui)
target_link_libraries(symdump wine)
add_importlibs(symdump dbghelp shlwapi msvcrt kernel32 ntdll)
set_module_type(symdump win32cui)
target_link_libraries(symdump wine)
add_importlibs(symdump dbghelp shlwapi msvcrt kernel32 ntdll)
-if(NOT MSVC)
- target_compile_options(symdump PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(symdump PRIVATE -Wno-unused-but-set-variable)
endif()
add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
endif()
add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
add_executable(ncftp ${SOURCE} ncftp.rc)
set_module_type(ncftp win32cui)
target_compile_definitions(ncftp PRIVATE HAVE_UTIME_H HAVE_UNISTD_H)
add_executable(ncftp ${SOURCE} ncftp.rc)
set_module_type(ncftp win32cui)
target_compile_definitions(ncftp PRIVATE HAVE_UTIME_H HAVE_UNISTD_H)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(ncftp PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32)
target_compile_options(ncftp PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32)
add_executable(logevent logevent.c logevent.rc)
set_module_type(logevent win32cui)
add_executable(logevent logevent.c logevent.rc)
set_module_type(logevent win32cui)
-if(NOT MSVC)
- target_compile_options(logevent PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(logevent PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(logevent advapi32 msvcrt kernel32)
add_cd_file(TARGET logevent DESTINATION reactos/system32 FOR all)
endif()
add_importlibs(logevent advapi32 msvcrt kernel32)
add_cd_file(TARGET logevent DESTINATION reactos/system32 FOR all)
add_executable(pedump pedump.c pedump.rc)
set_module_type(pedump win32cui)
add_executable(pedump pedump.c pedump.rc)
set_module_type(pedump win32cui)
-if(NOT MSVC)
- target_compile_options(pedump PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(pedump PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(pedump msvcrt kernel32 ntdll)
add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)
endif()
add_importlibs(pedump msvcrt kernel32 ntdll)
add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)
add_executable(rosperf ${SOURCE} rosperf.rc)
set_module_type(rosperf win32cui UNICODE)
add_executable(rosperf ${SOURCE} rosperf.rc)
set_module_type(rosperf win32cui UNICODE)
-if(NOT MSVC)
- target_compile_options(rosperf PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(rosperf PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(rosperf version msimg32 gdi32 shell32 advapi32 user32 ntdll msvcrt kernel32)
add_cd_file(TARGET rosperf DESTINATION reactos/system32 FOR all)
endif()
add_importlibs(rosperf version msimg32 gdi32 shell32 advapi32 user32 ntdll msvcrt kernel32)
add_cd_file(TARGET rosperf DESTINATION reactos/system32 FOR all)
add_executable(template_dialog ${SOURCE} dialog.rc)
set_module_type(template_dialog win32cui)
add_executable(template_dialog ${SOURCE} dialog.rc)
set_module_type(template_dialog win32cui)
-if(NOT MSVC)
- target_compile_options(template_dialog PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(template_dialog PRIVATE -Wno-unused-but-set-variable)
endif()
add_importlibs(template_dialog user32 gdi32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET template_dialog DESTINATION reactos/system32 FOR all)
endif()
add_importlibs(template_dialog user32 gdi32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET template_dialog DESTINATION reactos/system32 FOR all)
target_compile_definitions(advpack_winetest PRIVATE USE_WINE_TODOS)
target_compile_definitions(advpack_winetest PRIVATE USE_WINE_TODOS)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(advpack_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(advpack_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_definitions(fusion_winetest PRIVATE USE_WINE_TODOS)
target_compile_definitions(fusion_winetest PRIVATE USE_WINE_TODOS)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(fusion_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(fusion_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_definitions(msi_winetest PRIVATE __WINESRC__ USE_WINE_TODOS)
target_compile_definitions(msi_winetest PRIVATE __WINESRC__ USE_WINE_TODOS)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(msi_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(msi_winetest PRIVATE -Wno-format-overflow)
endif()
if(MSVC)
add_importlibs(ole32_winetest ntdll)
if(MSVC)
add_importlibs(ole32_winetest ntdll)
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(ole32_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(ole32_winetest PRIVATE -Wno-format-overflow)
endif()
add_importlibs(services_winetest user32 advapi32 msvcrt kernel32)
add_rostests_file(TARGET services_winetest)
add_importlibs(services_winetest user32 advapi32 msvcrt kernel32)
add_rostests_file(TARGET services_winetest)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(services_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(services_winetest PRIVATE -Wno-format-overflow)
endif()
add_importlibs(setupapi_winetest advapi32 setupapi user32 shell32 msvcrt kernel32 ntdll)
add_rostests_file(TARGET setupapi_winetest)
add_importlibs(setupapi_winetest advapi32 setupapi user32 shell32 msvcrt kernel32 ntdll)
add_rostests_file(TARGET setupapi_winetest)
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(setupapi_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(setupapi_winetest PRIVATE -Wno-format-overflow)
endif()
if(MSVC)
add_importlibs(shell32_winetest ntdll)
if(MSVC)
add_importlibs(shell32_winetest ntdll)
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(shell32_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(shell32_winetest PRIVATE -Wno-format-overflow)
endif()
if(MSVC)
# Disable warning C4477 (printf format warnings)
remove_target_compile_option(user32_winetest "/we4477")
if(MSVC)
# Disable warning C4477 (printf format warnings)
remove_target_compile_option(user32_winetest "/we4477")
+endif()
+
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(user32_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_options(user32_winetest PRIVATE -Wno-format-overflow)
endif()
target_compile_definitions(version_winetest PRIVATE USE_WINE_TODOS)
target_compile_definitions(version_winetest PRIVATE USE_WINE_TODOS)
-if (NOT MSVC)
- target_compile_options(version_winetest PRIVATE -Wno-format-overflow)
-else()
add_importlibs(version_winetest ntdll)
endif()
add_importlibs(version_winetest ntdll)
endif()
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(version_winetest PRIVATE -Wno-format-overflow)
+endif()
+
add_rostests_file(TARGET version_winetest)
add_rostests_file(TARGET version_winetest)
add_library(adns ${SOURCE})
add_library(adns ${SOURCE})
-if(NOT MSVC)
- target_compile_options(adns PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(adns PRIVATE -Wno-unused-but-set-variable)
endif()
add_dependencies(adns psdk)
endif()
add_dependencies(adns psdk)
target_link_libraries(cardlib PRIVATE cpprt)
target_include_directories(cardlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(cardlib PRIVATE cpprt)
target_include_directories(cardlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-if(NOT MSVC)
- target_compile_options(cardlib PRIVATE "-Wno-unused-but-set-variable")
+if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
+ target_compile_options(cardlib PRIVATE -Wno-unused-but-set-variable)
endif()
add_dependencies(cardlib psdk)
endif()
add_dependencies(cardlib psdk)