dune_module_pathΒΆ

dune_module_path(
     MODULE module
     RESULT result
    [CMAKE_MODULES]
    [BUILD_DIR]
    [SOURCE_DIR]
    [SCRIPT_DIR]
)
MODULE

The name of the module.

RESULT

The name of the variable to export the result.

CMAKE_MODULES

Set to return the path to cmake modules

BUILD_DIR

Set to return the path to the build directory

SOURCE_DIR

Set to return the include path of the module

SCRIPT_DIR

Set to return the CMake script dir

Returns the specified path of the given module. This differs whether it is called from the actual module, or from a module requiring or suggesting this module. One and only one type of path may be requested.