diff options
| author | Andreas Pakulat <apaku@gmx.de> | 2007-12-21 18:31:36 +0000 | 
|---|---|---|
| committer | Andreas Pakulat <apaku@gmx.de> | 2007-12-21 18:31:36 +0000 | 
| commit | e3680c90b01171cbf76461fceb754357aae59fa5 (patch) | |
| tree | 2f265e84f7710f0d6a465bf79b1d07224099ec86 /modules | |
| parent | 782ddc710458abe4f2ec08468fafe14fe3ffce1f (diff) | |
| download | extra-cmake-modules-e3680c90b01171cbf76461fceb754357aae59fa5.tar.gz extra-cmake-modules-e3680c90b01171cbf76461fceb754357aae59fa5.tar.bz2 | |
fix the required-logic in this file
svn path=/trunk/KDE/kdelibs/; revision=751346
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/FindKDEWIN.cmake | 22 | 
1 files changed, 14 insertions, 8 deletions
| 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<ProgramFiles>/${DIR}\n" -                    "\t\t<ProgramFiles>/kdewin\n"  -                    "\t\t<ProgramFiles>/kdewin32\n"  -                    "\t\t<ProgramFiles>/win32libs\n" -                    "\t\t<ProgramFiles>/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<ProgramFiles>/${DIR}\n" +                      "\t\t<ProgramFiles>/kdewin\n"  +                      "\t\t<ProgramFiles>/kdewin32\n"  +                      "\t\t<ProgramFiles>/win32libs\n" +                      "\t\t<ProgramFiles>/gnuwin32\n" +      ) +    endif( KDEWIN_FIND_REQUIRED )     endif(KDEWIN_DIR)  endif (WIN32) | 
