Skip to content

Commit

Permalink
EG-1036 Fix strange include warnings on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JanFellner committed Jul 18, 2024
1 parent 9ecc366 commit aab73f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ endif()
if(MSVC)
# -wd4100 - do not complain about unreference parameters
target_compile_options(compiler PRIVATE -W4 -wd4100)
# Get rid of strange compiler warnings concerning interlocked functions the compiler is not usign anyway
add_definitions(-DMICROSOFT_WINDOWS_WINBASE_H_DEFINE_INTERLOCKED_CPLUSPLUS_OVERLOADS=0)
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
target_compile_options(compiler PRIVATE -Wall)
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang")
Expand Down

0 comments on commit aab73f0

Please sign in to comment.