|
|
@ -241,6 +241,15 @@ if (MSVC) |
|
|
) |
|
|
) |
|
|
else() |
|
|
else() |
|
|
set_source_files_properties(stb.cpp PROPERTIES COMPILE_OPTIONS "-Wno-implicit-fallthrough;-Wno-missing-declarations;-Wno-missing-field-initializers") |
|
|
set_source_files_properties(stb.cpp PROPERTIES COMPILE_OPTIONS "-Wno-implicit-fallthrough;-Wno-missing-declarations;-Wno-missing-field-initializers") |
|
|
|
|
|
|
|
|
|
|
|
# Get around GCC failing with intrinsics in Debug |
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_BUILD_TYPE MATCHES "Debug") |
|
|
|
|
|
set_property( |
|
|
|
|
|
SOURCE stb.cpp |
|
|
|
|
|
APPEND |
|
|
|
|
|
PROPERTY COMPILE_OPTIONS ";-O2" |
|
|
|
|
|
) |
|
|
|
|
|
endif() |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") |
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") |
|
|
|