Commit 9950ea19 authored by Robert K's avatar Robert K

[bugfix][DuneSymlinkOrCopy] Don't call dune_symlink_to_source_files when

source and binary dir are the same.
parent 7148e801
Pipeline #14269 passed with stage
in 12 minutes and 2 seconds
......@@ -11,9 +11,13 @@ include_directories("${PYTHON_INCLUDE_DIRS}")
function(add_python_targets base)
include(DuneSymlinkOrCopy)
foreach(file ${ARGN})
dune_symlink_to_source_files(FILES ${file}.py)
endforeach()
if( "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}" )
message(WARNING "Source and binary dir are the same, skipping symlink!")
else()
foreach(file ${ARGN})
dune_symlink_to_source_files(FILES ${file}.py)
endforeach()
endif()
endfunction()
include(DuneAddPybind11Module)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment