Commit ef6baa6f authored by Andreas Dedner's avatar Andreas Dedner

[!123] [bugfix][DuneSymlinkOrCopy] Don't call dune_symlink_to_source_files...

[!123] [bugfix][DuneSymlinkOrCopy] Don't call dune_symlink_to_source_files when source and binary dir are the same.

Merge branch 'bugfix/symlink-or-copy' into 'master'

See merge request [!123]

  [!123]: Nonestaging/dune-python/merge_requests/123
parents f69d6b84 9950ea19
Pipeline #15463 passed with stage
in 7 minutes and 20 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