Skip to content
Snippets Groups Projects
Commit d6a47f91 authored by Andreas Dedner's avatar Andreas Dedner
Browse files

check that policy CMP0087 exists in python/CMakeLists.txt file and set it to new if available

parent 94314a6c
Branches
Tags
1 merge request!960refactor the way python is used in dune
Pipeline #40607 passed with warnings
Pipeline: Dune Nightly Test

#40620

    ......@@ -15,6 +15,6 @@ dune_python_install_package(
    CMAKE_METADATA_FILE dune/common/metadata.cmake
    CMAKE_METADATA_FLAGS DUNE_OPTS_FILE CMAKE_BUILD_TYPE CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS CMAKE_C_COMPILER CMAKE_C_FLAGS CMAKE_PREFIX_PATH ALLOW_CXXFLAGS_OVERWRITE
    )
    if ("${CMAKE_VERSION}" VERSION_GREATER 3.14)
    if(POLICY CMP0087)
    cmake_policy(SET CMP0087 NEW)
    endif ("${CMAKE_VERSION}" VERSION_GREATER 3.14)
    endif()
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment