Skip to content
Snippets Groups Projects
Verified Commit 6e38287c authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos Committed by Santiago Ospina De Los Ríos
Browse files

Deprecate usage of dune_project cmake function outside of CMake project directories

parent f7f70723
Branches
Tags
1 merge request!1264Deprecate usage of dune_project cmake function outside of CMake project directories
Pipeline #66273 passed with warnings
Pipeline: Dune Nightly Test

#66274

    ......@@ -59,6 +59,11 @@ include(OverloadCompilerFlags)
    # Don't forget to call finalize_dune_project afterwards.
    macro(dune_project)
    if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
    message(DEPRECATION "The function `dune_project` shall only be called on CMake project root directory.
    Note that CMake projects may be nested: https://cmake.org/cmake/help/latest/command/project.html.")
    endif()
    # check if CXX flag overloading has been enabled (see OverloadCompilerFlags.cmake)
    initialize_compiler_script()
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment