diff --git a/CMakeLists.txt b/CMakeLists.txt index 31f20a40..a4ef9882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set (CMAKE_CXX_EXTENSIONS OFF) # -Wshorten-64-to-32 does not work with clang if (NOT WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wshorten-64-to-32") endif() if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")