[sword-svn] r3324 - trunk

greg.hellings at crosswire.org greg.hellings at crosswire.org
Tue Feb 17 07:25:09 MST 2015


Author: greg.hellings
Date: 2015-02-17 07:25:09 -0700 (Tue, 17 Feb 2015)
New Revision: 3324

Modified:
   trunk/CMakeLists.txt
Log:
Enable everything for cppcheck


Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2015-02-16 22:13:08 UTC (rev 3323)
+++ trunk/CMakeLists.txt	2015-02-17 14:25:09 UTC (rev 3324)
@@ -79,9 +79,11 @@
 # Most of the work for configuration is done above, already.
 #
 # I want to do this manually, there might be reason in the future
+SET(CPPCHECK_POSSIBLEERROR_ARG "--enable=all")
 IF(LIBSWORD_LIBRARY_TYPE MATCHES ".*Shared.*" OR NOT LIBSWORD_LIBRARY_TYPE)
 	ADD_LIBRARY(sword SHARED ${sword_SOURCES})
     ADD_CPPCHECK(sword
+        POSSIBLE_ERROR TRUE
         FORCE TRUE)
 	MESSAGE(STATUS "Building Shared library.")
 	SET(BUILDING_SHARED 1)
@@ -91,6 +93,7 @@
 IF(LIBSWORD_LIBRARY_TYPE MATCHES ".*Static.*" OR NOT LIBSWORD_LIBRARY_TYPE)
 	ADD_LIBRARY(sword_static STATIC ${sword_SOURCES})
     ADD_CPPCHECK(sword_static
+        POSSIBLE_ERROR TRUE
         FORCE TRUE)
 	SET_TARGET_PROPERTIES(sword_static PROPERTIES COMPILE_FLAGS "-fPIC")
 	SET(BUILDING_STATIC 1)




More information about the sword-cvs mailing list