Commit e4a6aea8 authored by Andreas Dedner's avatar Andreas Dedner
parents 03ba9843 ef6baa6f
Pipeline #16147 passed with stage
in 7 minutes and 25 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)
......@@ -55,7 +55,7 @@ grid_registry = {
}
try:
assertHave("ALBERTA")
assertHave("HAVE_ALBERTA")
def albertaGrid(constructor, dimgrid=None):
from .grid_generator import module, getDimgrid
......
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