Commit 3d28bfd4 authored by Laurent Montel's avatar Laurent Montel 😁

Fix module when it's required

svn path=/trunk/koffice/; revision=650774
parent 34d68fec
......@@ -66,8 +66,13 @@ ENDIF (GSL_INCLUDE_DIR AND GSL_LIBRARIES AND GSL_CBLAS_LIBRARIES AND GSL_VERSION
# output status
#
IF (GSL_FOUND)
if (NOT GSL_FIND_QUIETLY)
MESSAGE (STATUS "Found GNU Scientific Library ${GSL_VERSION}: ${GSL_INCLUDE_DIR} ${GSL_LIBRARIES};${GSL_CBLAS_LIBRARIES}")
endif(NOT GSL_FIND_QUIETLY)
ELSE (GSL_FOUND)
if (GSL_FIND_REQUIRED)
MESSAGE (STATUS "GNU Scientific Library not found. "
"KSpread's solver plugin won't be compiled.")
endif (GSL_FIND_REQUIRED)
ENDIF (GSL_FOUND)
......@@ -8,7 +8,7 @@
FIND_PATH(KUNITTEST_INCLUDE_DIR kunittest/tester.h
/usr/include
/usr/local/include
${KDE4_INCLUDE_DIR}
${KDE4_INCLUDE_DIR}
)
FIND_LIBRARY(KUNITTEST_LIBRARIES NAMES kunittest
......@@ -27,6 +27,10 @@ if (KUNITTEST_FOUND)
if (NOT Kunittest_FIND_QUIETLY)
message(STATUS "Found kunittest: ${KUNITTEST_LIBRARIES}")
endif (NOT Kunittest_FIND_QUIETLY)
else(KUNITTEST_FOUND)
if(Kunittest_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find kunitest")
endif(Kunittest_FIND_REQUIRED)
endif (KUNITTEST_FOUND)
MARK_AS_ADVANCED(KUNITTEST_INCLUDE_DIR KUNITTEST_LIBRARIES)
......
......@@ -18,11 +18,20 @@ find_library(PQXX_LIBRARIES NAMES pqxx
if(PQXX_INCLUDE_DIR AND PQXX_LIBRARIES)
set(PQXX_FOUND TRUE)
message(STATUS "Found libpqxx: ${PQXX_INCLUDE_DIR}, ${PQXX_LIBRARIES}")
else(PQXX_INCLUDE_DIR AND PQXX_LIBRARIES)
set(PQXX_FOUND FALSE)
message(STATUS "libpqxx not found.")
endif(PQXX_INCLUDE_DIR AND PQXX_LIBRARIES)
if (PQXX_FOUND)
if (NOT Pqxx_FIND_QUIETLY)
message(STATUS "Found libpqxx: ${PQXX_INCLUDE_DIR}, ${PQXX_LIBRARIES}")
endif (NOT Pqxx_FIND_QUIETLY)
else (PQXX_FOUND)
if (Pqxx_FIND_REQUIRED)
message(FATAL_ERROR "libpqxx not found.")
endif (Pqxx_FIND_REQUIRED)
endif (PQXX_FOUND)
mark_as_advanced(PQXX_INCLUDE_DIR PQXX_LIBRARIES)
......@@ -24,7 +24,6 @@ ELSE (WV2_LIBRARIES AND WV2_INCLUDE_DIR)
IF (WV2_LIBRARIES AND WV2_INCLUDE_DIR)
SET(WV2_FOUND TRUE)
message(STATUS "Found wv2: ${WV2_LIBRARIES}")
ENDIF (WV2_LIBRARIES AND WV2_INCLUDE_DIR)
# ensure that they are cached
......@@ -33,5 +32,15 @@ ELSE (WV2_LIBRARIES AND WV2_INCLUDE_DIR)
ENDIF (WV2CONFIG_EXECUTABLE)
if (WV2_FOUND)
if (NOT WV2_FIND_QUIETLY)
message(STATUS "Found wv2: ${WV2_LIBRARIES}")
endif (NOT WV2_FIND_QUIETLY)
else (WV2_FOUND)
if (WV2_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find OPENEXR")
endif (WV2_FIND_REQUIRED)
endif (WV2_FOUND)
ENDIF (WV2_LIBRARIES AND WV2_INCLUDE_DIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment