Skip to content

Commit

Permalink
Merge pull request #42 from GiulioRomualdi/fix/required_version
Browse files Browse the repository at this point in the history
Change compatibility of CMake config files from SameMinorVersion to SameMajorVersion
  • Loading branch information
GiulioRomualdi authored Jan 18, 2020
2 parents c469a83 + 834e789 commit 307f0fe
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 112 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED 11)

project(OsqpEigen
LANGUAGES CXX
VERSION 0.5.0)
VERSION 0.5.1)

# add GNU dirs
include(GNUInstallDirs)
Expand Down Expand Up @@ -102,7 +102,7 @@ install(TARGETS ${LIBRARY_TARGET_NAME}
include(InstallBasicPackageFiles)
install_basic_package_files(${PROJECT_NAME}
VERSION ${${PROJECT_NAME}_VERSION}
COMPATIBILITY SameMinorVersion
COMPATIBILITY SameMajorVersion
VARS_PREFIX ${PROJECT_NAME}
NO_CHECK_REQUIRED_COMPONENTS_MACRO
CONFIG_TEMPLATE ${CMAKE_SOURCE_DIR}/cmake/OsqpEigenConfig.cmake.in)
Expand Down
55 changes: 0 additions & 55 deletions cmake/BasicConfigVersion-SameMinorVersion.cmake.in

This file was deleted.

4 changes: 0 additions & 4 deletions cmake/InstallBasicPackageFiles.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
include(CMakeParseArguments)

# custom version of the write_basic_package_version_file
# available only from cmake 3.11
include(WriteBasicConfigVersionFile)

function(INSTALL_BASIC_PACKAGE_FILES _Name)

# TODO check that _Name does not contain "-" characters
Expand Down
51 changes: 0 additions & 51 deletions cmake/WriteBasicConfigVersionFile.cmake

This file was deleted.

0 comments on commit 307f0fe

Please sign in to comment.