summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-20 22:19:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-20 22:19:19 +0200
commitaf931eef1537cd4206eefcb981be75a2d01cba17 (patch)
tree9b3d7b869a2a6ee82dbfbb750786d42a79b4263e /CMakeLists.txt
parent767668381e1b2f76e5035e69a3d7d6f318fe2f67 (diff)
fix some warnings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ed73a2d..7447b2a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,19 +68,18 @@ function(fm_load_userconfig)
endfunction()
if(WIN32)
- add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -DWIN32_LEAN_AND_MEAN)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -DWIN32_LEAN_AND_MEAN -D_HAS_EXCEPTIONS=0)
endif()
if(MSVC)
add_definitions(-D_USE_MATH_DEFINES=1)
add_compile_options(-permissive-)
+ add_compile_options(-external:W0 -external:anglebrackets)
add_compile_options(
- -wd4244 # warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
- -wd4312 # warning C4312: 'reinterpret_cast': conversion from 'GLenum' to 'void *' of greater size
- -wd4251 # warning C4251: 't::f': class 'x' needs to have dll-interface to be used by clients of class 'y'
- -wd4456 # warning C4456: declaration of 'x' hides previous local declaration
+ #-wd4244 # warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
+ #-wd4251 # warning C4251: 't::f': class 'x' needs to have dll-interface to be used by clients of class 'y'
+ -wd4456 # warning C4456: declaration of 'x' hides previous local declaration
)
- add_compile_options(-external:W0 -external:anglebrackets)
if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
add_link_options(-HIGHENTROPYVA)
endif()