Commit 539e0522 authored by Julien Malik's avatar Julien Malik

COMP: more cmakish Find modules - report the path to the library instead of the include dir

parent 61daf0ac
......@@ -19,7 +19,7 @@ FIND_LIBRARY( GETTEXT_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set GETTEXT_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( GETTEXT DEFAULT_MSG GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( GETTEXT DEFAULT_MSG GETTEXT_LIBRARY GETTEXT_INCLUDE_DIR )
MARK_AS_ADVANCED( GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY )
......
......@@ -19,7 +19,7 @@ FIND_LIBRARY( ICUUC_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set ICUUC_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( ICUUC DEFAULT_MSG ICUUC_INCLUDE_DIR ICUUC_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( ICUUC DEFAULT_MSG ICUUC_LIBRARY ICUUC_INCLUDE_DIR )
MARK_AS_ADVANCED( ICUUC_INCLUDE_DIR ICUUC_LIBRARY )
......
......@@ -19,7 +19,7 @@ FIND_LIBRARY( LTDL_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set LTDL_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LTDL DEFAULT_MSG LTDL_INCLUDE_DIR LTDL_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LTDL DEFAULT_MSG LTDL_LIBRARY LTDL_INCLUDE_DIR )
MARK_AS_ADVANCED( LTDL_INCLUDE_DIR LTDL_LIBRARY )
......
......@@ -41,14 +41,15 @@ MARK_AS_ADVANCED( LIBKML_INCLUDE_DIR
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LibKML DEFAULT_MSG
LIBKML_INCLUDE_DIR
LIBKML_BASE_LIBRARY
LIBKML_CONVENIENCE_LIBRARY
LIBKML_DOM_LIBRARY
LIBKML_ENGINE_LIBRARY
LIBKML_REGIONATOR_LIBRARY
LIBKML_XSD_LIBRARY
LIBKML_MINIZIP_LIBRARY )
LIBKML_MINIZIP_LIBRARY
LIBKML_INCLUDE_DIR
)
IF(LIBKML_FOUND)
SET(LIBKML_INCLUDE_DIRS ${LIBKML_INCLUDE_DIR})
......
......@@ -19,7 +19,7 @@ FIND_LIBRARY( LIBLAS_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set LIBLAS_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LIBLAS DEFAULT_MSG LIBLAS_INCLUDE_DIR LIBLAS_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( LIBLAS DEFAULT_MSG LIBLAS_LIBRARY LIBLAS_INCLUDE_DIR )
MARK_AS_ADVANCED( LIBLAS_INCLUDE_DIR LIBLAS_LIBRARY )
......
......@@ -21,6 +21,6 @@ FIND_LIBRARY( MUPARSER_LIBRARIES
# handle the QUIETLY and REQUIRED arguments and set MUPARSER_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( MuParser DEFAULT_MSG MUPARSER_INCLUDE_DIR MUPARSER_LIBRARIES )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( MuParser DEFAULT_MSG MUPARSER_LIBRARIES MUPARSER_INCLUDE_DIR )
MARK_AS_ADVANCED( MUPARSER_INCLUDE_DIR MUPARSER_LIBRARIES )
......@@ -22,7 +22,7 @@ FIND_LIBRARY(OSSIM_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set OSSIM_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( Ossim DEFAULT_MSG OSSIM_INCLUDE_DIR OSSIM_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( Ossim DEFAULT_MSG OSSIM_LIBRARY OSSIM_INCLUDE_DIR )
MARK_AS_ADVANCED( OSSIM_INCLUDE_DIR OSSIM_LIBRARY )
......
......@@ -20,7 +20,7 @@ FIND_LIBRARY( PQXX_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set PQXX_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( PQXX DEFAULT_MSG PQXX_INCLUDE_DIR PQXX_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( PQXX DEFAULT_MSG PQXX_LIBRARY PQXX_INCLUDE_DIR )
MARK_AS_ADVANCED( PQXX_INCLUDE_DIR PQXX_LIBRARY )
......
......@@ -21,7 +21,7 @@ FIND_LIBRARY( TINYXML_LIBRARY
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( TinyXML DEFAULT_MSG TINYXML_INCLUDE_DIR TINYXML_LIBRARY )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( TinyXML DEFAULT_MSG TINYXML_LIBRARY TINYXML_INCLUDE_DIR )
MARK_AS_ADVANCED( TINYXML_INCLUDE_DIR TINYXML_LIBRARY )
......
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