]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Catch up on r599 for cmake.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Feb 2009 13:19:34 +0000 (08:19 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Feb 2009 13:19:34 +0000 (08:19 -0500)
SVN-Revision: 602

CMakeLists.txt

index 06bd7ee3ab65f6661a619cb9796674dd47846ccc..78df3a5c5c5db4eabc4377a6e1c30873734d6c3c 100644 (file)
@@ -626,6 +626,12 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libarchive)
 IF(MSVC)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
 ENDIF(MSVC)
+# Especially for early development, we want to be a little
+# aggressive about diagnosing build problems; this can get
+# relaxed somewhat in final shipping versions.
+IF ("CMAKE_C_COMPILER_ID" MATCHES "^GNU$")
+  ADD_DEFINITIONS(-Wall -Werror)
+ENDIF ("CMAKE_C_COMPILER_ID" MATCHES "^GNU$")
 # Libarchive is a library
 ADD_LIBRARY(archive SHARED ${libarchive_SOURCES} ${include_HEADERS})
 TARGET_LINK_LIBRARIES(archive ${ADDITIONAL_LIBS})