summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindPylon.cmake8
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")