diff options
author | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-08-02 10:22:28 +0200 |
---|---|---|
committer | Volker Kaiser <volker.kaiser@softwareschneiderei.de> | 2012-08-02 10:22:28 +0200 |
commit | c22c7e1254228c43cc56eecb03bd6ac171768a0d (patch) | |
tree | 96f36c74f11327e7464ff11def1c181f161bc31e | |
parent | 6683a6e9a6fc0259d5e5dfd97279680e292d7938 (diff) | |
download | libuca-c22c7e1254228c43cc56eecb03bd6ac171768a0d.tar.gz libuca-c22c7e1254228c43cc56eecb03bd6ac171768a0d.tar.bz2 libuca-c22c7e1254228c43cc56eecb03bd6ac171768a0d.tar.xz libuca-c22c7e1254228c43cc56eecb03bd6ac171768a0d.zip |
use LIBPYLONCAM_OTHER_PREFIX to change prefix found with pkg-config
-rw-r--r-- | cmake/FindPylon.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/FindPylon.cmake b/cmake/FindPylon.cmake index 9c678bc..a8b7182 100644 --- a/cmake/FindPylon.cmake +++ b/cmake/FindPylon.cmake @@ -10,6 +10,7 @@ # check for environment variable PYLON_ROOT find_package(YAT) find_package(PkgConfig) +find_package(PackageHandleStandardArgs) if (NOT "$ENV{PYLON_ROOT}" STREQUAL "") message("PYLON_ROOT=$ENV{PYLON_ROOT}") @@ -21,13 +22,18 @@ if (NOT "$ENV{PYLON_ROOT}" STREQUAL "") pkg_check_modules(LIBPYLONCAM pyloncam>=0.1 REQUIRED) find_library(YAT_LIB yat ${YAT_LIBRARY_DIRS}) - find_package(PackageHandleStandardArgs) find_package_handle_standard_args(PYLON DEFAULT_MSG LIBPYLONCAM_INCLUDEDIR LIBPYLONCAM_LIBRARIES) mark_as_advanced( LIBPYLONCAM_INCLUDEDIR LIBPYLONCAM_LIBRARIES) + if (DEFINED LIBPYLONCAM_OTHER_PREFIX) + string(REPLACE ${LIBPYLONCAM_PREFIX} ${LIBPYLONCAM_OTHER_PREFIX} + LIBPYLONCAM_INCLUDEDIR ${LIBPYLONCAM_INCLUDEDIR}) + string(REPLACE ${LIBPYLONCAM_PREFIX} ${LIBPYLONCAM_OTHER_PREFIX} + LIBPYLONCAM_LIBRARIES ${LIBPYLONCAM_LIBRARIES}) + endif() else() message("Environment variable PYLON_ROOT not found! => unable to build pylon camera support") |