We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fe93a9 commit 38176a9Copy full SHA for 38176a9
1 file changed
CMakeLists.txt
@@ -28,7 +28,10 @@ function(tiny_engine_configure_target TARGET_NAME)
28
29
# More warnings.
30
if(MSVC)
31
- target_compile_options(${TARGET_NAME} PUBLIC /W3 /WX /wd4996 /wd4090) # disable warnings: unsafe function, different const qualifiers
+ target_compile_options(${TARGET_NAME} PUBLIC /W3 /WX /wd4996)
32
+ if(CMAKE_SIZEOF_VOID_P EQUAL 4)
33
+ target_compile_options(${TARGET_NAME} PUBLIC /wd4090)
34
+ endif()
35
else()
36
target_compile_options(${TARGET_NAME} PUBLIC -Wall -Wextra -Werror -Wconversion -Wno-unused-but-set-parameter -Wno-incompatible-function-pointer-types)
37
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
0 commit comments