summaryrefslogtreecommitdiffstats
path: root/cmake_unofficial/CMakeLists.txt
diff options
context:
space:
mode:
authoralexDarcy <alexDarcy@users.noreply.github.com>2015-03-11 10:13:20 (GMT)
committeralexDarcy <alexDarcy@users.noreply.github.com>2015-03-11 10:13:20 (GMT)
commitf2cc4bed937265d3702a2be53d3e7202fb5c1bc5 (patch)
tree2ae860cbd8ab2aa27d23ebad2caa213f9352df26 /cmake_unofficial/CMakeLists.txt
parente25b51de7b51101e04ceea194dd557fcc23c03ca (diff)
downloadlz4-f2cc4bed937265d3702a2be53d3e7202fb5c1bc5.zip
lz4-f2cc4bed937265d3702a2be53d3e7202fb5c1bc5.tar.gz
lz4-f2cc4bed937265d3702a2be53d3e7202fb5c1bc5.tar.bz2
Updated Cmake configuration for non-gnu compiler
Diffstat (limited to 'cmake_unofficial/CMakeLists.txt')
-rw-r--r--cmake_unofficial/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake_unofficial/CMakeLists.txt b/cmake_unofficial/CMakeLists.txt
index bb7ab5f..4c0878a 100644
--- a/cmake_unofficial/CMakeLists.txt
+++ b/cmake_unofficial/CMakeLists.txt
@@ -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})
+