aboutsummaryrefslogtreecommitdiff
path: root/modules/FindGNUWIN32.cmake
diff options
context:
space:
mode:
authorSebastian Sauer <mail@dipe.org>2006-10-21 02:14:04 +0000
committerSebastian Sauer <mail@dipe.org>2006-10-21 02:14:04 +0000
commita7fdedd52f898bc55cc3293111c1186bf9019d0c (patch)
treea160fae7aea6c4e31173eb4731436dc96a81133f /modules/FindGNUWIN32.cmake
parent5ee682a9f2a5fd346ef8ec7f3bb7292103ecb843 (diff)
downloadextra-cmake-modules-a7fdedd52f898bc55cc3293111c1186bf9019d0c.tar.gz
extra-cmake-modules-a7fdedd52f898bc55cc3293111c1186bf9019d0c.tar.bz2
* look also in a directory named "kdewin32" for the gnuwin32 libs.
* abort with FATAL_ERROR if gnuwin32 could not be found and REQUIRED got defined. svn path=/trunk/KDE/kdelibs/; revision=597624
Diffstat (limited to 'modules/FindGNUWIN32.cmake')
-rw-r--r--modules/FindGNUWIN32.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindGNUWIN32.cmake b/modules/FindGNUWIN32.cmake
index f9f0d4d6..fde43d99 100644
--- a/modules/FindGNUWIN32.cmake
+++ b/modules/FindGNUWIN32.cmake
@@ -15,7 +15,7 @@ if(NOT GNUWIN32_DIR)
if(NOT GNUWIN32_DIR)
# search in the default program install folder
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
- find_file(GNUWIN32_DIR_tmp gnuwin32 win32libs
+ find_file(GNUWIN32_DIR_tmp gnuwin32 kdewin32 win32libs
PATHS
"${_progFiles}"
"C:/" "D:/" "E:/" "F:/" "G:/"
@@ -41,7 +41,7 @@ if (GNUWIN32_FOUND)
endif (NOT GNUWIN32_FIND_QUIETLY)
else (GNUWIN32_FOUND)
if (GNUWIN32_FIND_REQUIRED)
- message(SEND_ERROR "Could NOT find GNUWIN32")
+ message(FATAL_ERROR "Could NOT find GNUWIN32")
endif (GNUWIN32_FIND_REQUIRED)
endif (GNUWIN32_FOUND)