Skip to content
Snippets Groups Projects
Commit 4805b108 authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Include make CMake policy when finding packages

parent e165c23c
No related branches found
No related tags found
1 merge request!49Resolve "Finish installation and usage instruction on the documentation"
......@@ -23,8 +23,20 @@ if(NOT dune-copasi_FOUND)
include(CMakeFindDependencyMacro)
# setup basic dune dependecy
find_dependency(dune-common REQUIRED)
cmake_policy(PUSH)
cmake_policy(SET CMP0074 NEW)
# setup dependencies
find_dependency(dune-common)
find_dependency(muparser)
find_dependency(TIFF)
if(@USE_FALLBACK_FILESYSTEM@)
find_dependency(ghc_filesystem REQUIRED)
else()
find_dependency(Filesystem REQUIRED)
endif()
cmake_policy(POP)
# make sure to find cmake modules for dune-common
list(APPEND CMAKE_MODULE_PATH "${dune-common_MODULE_PATH}")
......@@ -52,14 +64,6 @@ if(NOT dune-copasi_FOUND)
# make sure to find cmake modules for dune-copasi
list(APPEND CMAKE_MODULE_PATH "${dune-copasi_MODULE_PATH}")
# setup dependencies
find_dependency(muparser)
find_dependency(TIFF)
find_dependency(Filesystem)
if(@USE_FALLBACK_FILESYSTEM@)
find_package(ghc_filesystem)
endif()
# import targets
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${_dir}/dune-copasi-targets.cmake")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment