ENH: Adding SYSTEM option to INCLUDE_DIRECTORIES command. This addresses bug #3462.

This commit is contained in:
Brad King
2006-10-05 08:55:59 -04:00
parent e36eb71913
commit c11cf31c9b
18 changed files with 99 additions and 10 deletions

View File

@@ -118,6 +118,11 @@ ADD_DEPENDENCIES(notInAllCustom notInAllExe)
#
ADD_SUBDIRECTORY(Temp)
IF(CMAKE_COMPILER_IS_GNUCXX)
ADD_EXECUTABLE(testSystemDir testSystemDir.cxx)
SET_TARGET_PROPERTIES(testSystemDir PROPERTIES COMPILE_FLAGS "-Werror")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
#
# Extra coverage.Not used.
#

View File

@@ -0,0 +1,3 @@
#include <testSystemDir.h>
int main() { return foo(); }