(cmake) add a warning about 32/64 conversion problems.

This commit is contained in:
Benjamin Sergeant 2019-03-19 17:25:07 -07:00
parent eac611ab1e
commit fe700d1e7b

View File

@ -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")