CMake: Include GCC specific options also for MSYS2
This commit is contained in:
parent
8b61c9dd8f
commit
053c2dcdd3
|
@ -55,11 +55,6 @@ if(WIN32)
|
||||||
set(EXTRA_WINDOWS_LIBRARIES setupapi ws2_32)
|
set(EXTRA_WINDOWS_LIBRARIES setupapi ws2_32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT WIN32)
|
|
||||||
set(LIB_MATH m)
|
|
||||||
add_compile_options(-Wall) # -Wextra
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS=1)
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS=1)
|
||||||
add_compile_definitions(_CRT_NONSTDC_NO_WARNINGS=1)
|
add_compile_definitions(_CRT_NONSTDC_NO_WARNINGS=1)
|
||||||
|
@ -79,6 +74,9 @@ if(MSVC)
|
||||||
set(EXTRA_WINDOWS_INCLUDES ${EXTRA_WINDOWS_INCLUDES}
|
set(EXTRA_WINDOWS_INCLUDES ${EXTRA_WINDOWS_INCLUDES}
|
||||||
"msvc"
|
"msvc"
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
set(LIB_MATH m)
|
||||||
|
add_compile_options(-Wall) # -Wextra
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# =====================================
|
# =====================================
|
||||||
|
|
Loading…
Reference in New Issue