Skip to content

Commit

Permalink
Core/CMake: Silence some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed May 11, 2019
1 parent 1121a04 commit c8795f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/CMakeLists.txt
Expand Up @@ -7,6 +7,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-D_SCL_SECURE_NO_WARNINGS) add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE) add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
endif() endif()


set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
Expand Down Expand Up @@ -42,8 +43,9 @@ if (MSVC)
# Treat all warnings as errors # Treat all warnings as errors
add_compile_options(/WX) add_compile_options(/WX)


add_definitions(/D _CRT_NONSTDC_NO_WARNINGS) # All files are encoded as UTF-8
add_definitions(/utf-8) add_compile_options(/utf-8)

endif() endif()


# These aren't actually needed for C11/C++11 # These aren't actually needed for C11/C++11
Expand Down
1 change: 1 addition & 0 deletions Source/Core/Core/CMakeLists.txt
Expand Up @@ -343,6 +343,7 @@ if(WIN32)
setupapi.lib setupapi.lib
iphlpapi.lib iphlpapi.lib
) )
target_compile_definitions(core PRIVATE "-D_WINSOCK_DEPRECATED_NO_WARNINGS")
elseif(APPLE) elseif(APPLE)
target_sources(core PRIVATE target_sources(core PRIVATE
HW/EXI/BBA-TAP/TAP_Apple.cpp HW/EXI/BBA-TAP/TAP_Apple.cpp
Expand Down

0 comments on commit c8795f7

Please sign in to comment.