Skip to content
Snippets Groups Projects
Commit 9c0f5a11 authored by Linus Seelinger's avatar Linus Seelinger
Browse files

[Cmake] Support absolute paths in dune_library_add_sources

parent 08f5fad2
No related branches found
No related tags found
1 merge request!96Improve library handling in dune_enable_all_packages
......@@ -386,6 +386,10 @@ List of libraries defined in dune_enable_all_packages: ${DUNE_ENABLE_ALL_PACKAGE
endif()
foreach(source ${DUNE_LIBRARY_ADD_SOURCES_SOURCES})
target_sources(${lib} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${source})
if(IS_ABSOLUTE ${source})
target_sources(${lib} PRIVATE ${source})
else()
target_sources(${lib} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${source})
endif()
endforeach()
endfunction()
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