Updated Cmake configuration for non-gnu compiler

This commit is contained in:
alexDarcy 2015-03-11 11:13:20 +01:00
parent e25b51de7b
commit f2cc4bed93

View File

@ -69,14 +69,17 @@ endif()
#warnings
ADD_DEFINITIONS("-Wall")
if(CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS("-Wextra")
ADD_DEFINITIONS("-Wundef")
ADD_DEFINITIONS("-Wshadow")
ADD_DEFINITIONS("-Wcast-align")
ADD_DEFINITIONS("-Wstrict-prototypes")
endif(CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS("-std=c99")
ADD_DEFINITIONS("-DLZ4_VERSION=\"${CPACK_PACKAGE_VERSION_PATCH}\"")
INCLUDE_DIRECTORIES (${LZ4_DIR})