Merge pull request #57 from alexDarcy/master
Updated Cmake configuration for non-gnu compiler v2
This commit is contained in:
commit
74a6b14f29
@ -69,14 +69,17 @@ endif()
|
|||||||
#warnings
|
#warnings
|
||||||
|
|
||||||
ADD_DEFINITIONS("-Wall")
|
ADD_DEFINITIONS("-Wall")
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
ADD_DEFINITIONS("-Wextra")
|
ADD_DEFINITIONS("-Wextra")
|
||||||
ADD_DEFINITIONS("-Wundef")
|
ADD_DEFINITIONS("-Wundef")
|
||||||
ADD_DEFINITIONS("-Wshadow")
|
ADD_DEFINITIONS("-Wshadow")
|
||||||
ADD_DEFINITIONS("-Wcast-align")
|
ADD_DEFINITIONS("-Wcast-align")
|
||||||
ADD_DEFINITIONS("-Wstrict-prototypes")
|
ADD_DEFINITIONS("-Wstrict-prototypes")
|
||||||
|
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
ADD_DEFINITIONS("-std=c99")
|
ADD_DEFINITIONS("-std=c99")
|
||||||
ADD_DEFINITIONS("-DLZ4_VERSION=\"${CPACK_PACKAGE_VERSION_PATCH}\"")
|
ADD_DEFINITIONS("-DLZ4_VERSION=\"${CPACK_PACKAGE_VERSION_PATCH}\"")
|
||||||
INCLUDE_DIRECTORIES (${LZ4_DIR})
|
INCLUDE_DIRECTORIES (${LZ4_DIR})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user