Skip to content

Commit

Permalink
Merge pull request #6871 from Biswa96/cmake-msvc
Browse files Browse the repository at this point in the history
CMake: Check compiler type for MSVC speicific option
  • Loading branch information
rouault committed Apr 22, 2023
2 parents 4def2dd + ca792f3 commit ed89707
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Expand Up @@ -293,8 +293,10 @@ if(WIN32)
set(REGEX_MALLOC 1)
set(USE_GENERIC_MS_NINT 1)
set(HAVE_STRING_H 0)
# Suppress warnings for regex.c
set_source_files_properties(${REGEX_SOURCES} PROPERTIES COMPILE_FLAGS /w)
if(MSVC)
# Suppress warnings for regex.c
set_source_files_properties(${REGEX_SOURCES} PROPERTIES COMPILE_FLAGS /w)
endif(MSVC)
else(WIN32)
set(REGEX_SOURCES "")
endif(WIN32)
Expand Down

0 comments on commit ed89707

Please sign in to comment.