From e3680c90b01171cbf76461fceb754357aae59fa5 Mon Sep 17 00:00:00 2001 From: Andreas Pakulat Date: Fri, 21 Dec 2007 18:31:36 +0000 Subject: fix the required-logic in this file svn path=/trunk/KDE/kdelibs/; revision=751346 --- modules/FindKDEWIN.cmake | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/FindKDEWIN.cmake b/modules/FindKDEWIN.cmake index 4626ca7c..5694e533 100644 --- a/modules/FindKDEWIN.cmake +++ b/modules/FindKDEWIN.cmake @@ -44,15 +44,21 @@ if (WIN32) set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${KDEWIN_DIR}/lib) set (KDEWIN_FOUND 1) + if (NOT KDEWIN_FIND_QUIETLY) + message(STATUS "Found kdewin32 library: ${KDEWIN32_LIBRARY}") + endif (NOT KDEWIN_FIND_QUIETLY) + else(KDEWIN_DIR) - message(STATUS "Could not find the location of the windows supplementary packages which is \n" - "\t\tenvironment variable KDEWIN_DIR\n" - "\t\t/${DIR}\n" - "\t\t/kdewin\n" - "\t\t/kdewin32\n" - "\t\t/win32libs\n" - "\t\t/gnuwin32\n" - ) + if( KDEWIN_FIND_REQUIRED ) + message(FATAL_ERROR "Could not find the location of the windows supplementary packages which is \n" + "\t\tenvironment variable KDEWIN_DIR\n" + "\t\t/${DIR}\n" + "\t\t/kdewin\n" + "\t\t/kdewin32\n" + "\t\t/win32libs\n" + "\t\t/gnuwin32\n" + ) + endif( KDEWIN_FIND_REQUIRED ) endif(KDEWIN_DIR) endif (WIN32) -- cgit v1.2.1