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

Guard module libraries to be excluded on NO_MODULE_LIBRARY

parent d8813911
No related branches found
No related tags found
1 merge request!1247Export targets under custom namespaces (Dune:: by default)
......@@ -208,7 +208,9 @@ function(dune_add_library_normal _name)
set(${ProjectName}_EXPORT_SET_UNSCOPED ${ProjectName}-targets-unscoped CACHE INTERNAL "")
# Register target as an exported library
set_property(GLOBAL APPEND PROPERTY ${ProjectName}_INTERFACE_LIBRARIES Dune::${ARG_EXPORT_NAME})
if(NOT ARG_NO_MODULE_LIBRARY)
set_property(GLOBAL APPEND PROPERTY ${ProjectName}_INTERFACE_LIBRARIES Dune::${ARG_EXPORT_NAME})
endif()
endif()
# Register library in global property <module>LIBRARIES
......@@ -263,7 +265,9 @@ function(dune_add_library_interface _name)
set(${ProjectName}_EXPORT_SET_UNSCOPED ${ProjectName}-targets-unscoped CACHE INTERNAL "")
# Register target as an exported library
set_property(GLOBAL APPEND PROPERTY ${ProjectName}_INTERFACE_LIBRARIES Dune::${ARG_EXPORT_NAME})
if(NOT ARG_NO_MODULE_LIBRARY)
set_property(GLOBAL APPEND PROPERTY ${ProjectName}_INTERFACE_LIBRARIES Dune::${ARG_EXPORT_NAME})
endif()
endif()
# Register library in global property <module>_LIBRARIES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment