Merge pull request #57 from alexDarcy/master

Updated Cmake configuration for non-gnu compiler v2
This commit is contained in:
Yann Collet 2015-03-11 14:35:47 +01:00
commit 74a6b14f29

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})