summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-30 17:11:45 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-30 17:11:45 (GMT)
commitcd94e07884392ec70f11336025efce5083688c60 (patch)
treefad68cd6b110a69902507a4a0318e4791166a35b /Source/WXDialog
parent36e6b85f70fde85d511442f9f9fe2a496cf2e298 (diff)
downloadCMake-cd94e07884392ec70f11336025efce5083688c60.zip
CMake-cd94e07884392ec70f11336025efce5083688c60.tar.gz
CMake-cd94e07884392ec70f11336025efce5083688c60.tar.bz2
ENH: Also fail when make failsSource/cmaketest.cxx
Diffstat (limited to 'Source/WXDialog')
-rw-r--r--Source/WXDialog/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/WXDialog/CMakeLists.txt b/Source/WXDialog/CMakeLists.txt
index 2914681..8633452 100644
--- a/Source/WXDialog/CMakeLists.txt
+++ b/Source/WXDialog/CMakeLists.txt
@@ -1,6 +1,7 @@
INCLUDE (${CMAKE_ROOT}/Modules/FindwxWindows.cmake)
-IF ( CMAKE_WX_CAN_COMPILE )
+IF ( WXWINDOWS_FOUND )
+ INCLUDE(${CMAKE_ROOT}/Modules/Use_wxWindows.cmake)
SET( WX_SRCS
cmWXCacheProperty.cxx
@@ -65,8 +66,8 @@ IF ( CMAKE_WX_CAN_COMPILE )
-Q -A:ON -B:${CMake_BINARY_DIR}/Tests/Simple
-H:${CMake_SOURCE_DIR}/Tests/Simple)
ENDIF(BUILD_TESTING)
-ELSE ( CMAKE_WX_CAN_COMPILE )
+ELSE ( WXWINDOWS_FOUND )
MESSAGE("Cannot find wxWindows libraries and/or header files")
-ENDIF ( CMAKE_WX_CAN_COMPILE )
+ENDIF ( WXWINDOWS_FOUND )