Skip to content
Snippets Groups Projects
Commit 4073fab2 authored by Gastineau Mickael's avatar Gastineau Mickael
Browse files

fix the installation step

parent 75070434
Branches
Tags 20210512.0.1
No related merge requests found
#####################################################################
# complete build chain for cmake.
#
# Copyright, 2018-2021, IMCCE, CNRS, Observatoire de Paris, PSL.
# Copyright, 2018-2022, IMCCE, CNRS, Observatoire de Paris, PSL.
#
#####################################################################
......
#####################################################################
# create and install the openfaConfig.cmake and openfaConfigVersion.cmake
#
# Copyright, 2021 IMCCE, CNRS, Observatoire de Paris, PSL.
# Copyright, 2021-2022, IMCCE, CNRS, Observatoire de Paris, PSL.
#
#####################################################################
# see https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file
......@@ -27,7 +27,7 @@ endif()
include(CMakePackageConfigHelpers)
configure_package_config_file(toolchain/openfaConfig.cmake.in ${PROJECT_BINARY_DIR}/openfaConfig.cmake
INSTALL_DESTINATION "${INSTALL_CMAKE_DIR}" PATH_VARS INSTALL_INCLUDE_DIR INSTALL_SYSCONFIG_DIR)
write_basic_package_version_file(${PROJECT_BINARY_DIR}/openfaConfigVersion.cmake VERSION @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@ COMPATIBILITY SameMajorVersion )
write_basic_package_version_file(${PROJECT_BINARY_DIR}/openfaConfigVersion.cmake VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} COMPATIBILITY SameMajorVersion )
# Install the openfaConfig.cmake and openfaConfigVersion.cmake
if (OPENFA_INSTALL)
......
#####################################################################
# File to create the package for the installation (....cmake).
#
# Copyright, 2018-2021, IMCCE, CNRS, Observatoire de Paris, PSL.
# Copyright, 2018-2022, IMCCE, CNRS, Observatoire de Paris, PSL.
#
#####################################################################
# It defines the following variables
......@@ -12,12 +12,12 @@ set(OPENFA_VERSION @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERS
@PACKAGE_INIT@
set_and_check(OPENFA_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(OPENFA_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
set(OPENFA_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
set(OPENFA_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
# library dependency
if(NOT TARGET openfa AND NOT openfa_BINARY_DIR)
include("${OPENFA_CMAKE_DIR}/openfaTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/openfaTargets.cmake")
endif()
# IMPORTED targets created by openfaTargets.cmake
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment