summaryrefslogtreecommitdiffstats
path: root/Modules/UsewxWidgets.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-19 14:07:41 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-19 14:07:41 (GMT)
commit2fd1b374c17f4da904a0f3e62802a352f8ab6c72 (patch)
tree680726d4becf65ba10afc7ccf6e0b6c0ff179f71 /Modules/UsewxWidgets.cmake
parentbfe885f6eff32f00d26e619d6604d13cc6dc4655 (diff)
downloadCMake-2fd1b374c17f4da904a0f3e62802a352f8ab6c72.zip
CMake-2fd1b374c17f4da904a0f3e62802a352f8ab6c72.tar.gz
CMake-2fd1b374c17f4da904a0f3e62802a352f8ab6c72.tar.bz2
ENH: Patch from Jan for bug#3453. Cleans up find script and enables -isystem feature for use script.
Diffstat (limited to 'Modules/UsewxWidgets.cmake')
-rw-r--r--Modules/UsewxWidgets.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/UsewxWidgets.cmake b/Modules/UsewxWidgets.cmake
index e901f24..b0e77e7 100644
--- a/Modules/UsewxWidgets.cmake
+++ b/Modules/UsewxWidgets.cmake
@@ -32,7 +32,11 @@ ENDMACRO(MSG)
MSG("wxWidgets_FOUND=${wxWidgets_FOUND}")
IF (wxWidgets_FOUND)
IF (wxWidgets_INCLUDE_DIRS)
- INCLUDE_DIRECTORIES( ${wxWidgets_INCLUDE_DIRS} )
+ IF(wxWidgets_INCLUDE_DIRS_NO_SYSTEM)
+ INCLUDE_DIRECTORIES(${wxWidgets_INCLUDE_DIRS})
+ ELSE(wxWidgets_INCLUDE_DIRS_NO_SYSTEM)
+ INCLUDE_DIRECTORIES(SYSTEM ${wxWidgets_INCLUDE_DIRS})
+ ENDIF(wxWidgets_INCLUDE_DIRS_NO_SYSTEM)
MSG("wxWidgets_INCLUDE_DIRS=${wxWidgets_INCLUDE_DIRS}")
ENDIF(wxWidgets_INCLUDE_DIRS)