Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lazperf version requirement and make it dynamic. #84

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ if(WITH_TESTS)
endif()

# Find required packages
find_package(LAZPERF 3.0.0 REQUIRED)
# LAZPERF
set(LAZPERF_VERSION "3.0.0")
find_package(LAZPERF ${LAZPERF_VERSION} REQUIRED)

# Enable RPATH support for installed binaries and libraries
include(AddInstallRPATHSupport)
Expand Down Expand Up @@ -122,7 +124,7 @@ install_basic_package_files(${PROJECT_NAME}
VERSION ${${PROJECT_NAME}_VERSION}
COMPATIBILITY AnyNewerVersion
VARS_PREFIX ${PROJECT_NAME}
DEPENDENCIES "LAZPERF 2.1.0 REQUIRED"
DEPENDENCIES "LAZPERF ${LAZPERF_VERSION} REQUIRED"
FIRST_TARGET copc-lib
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
# Add the uninstall target
Expand Down