Skip to content
Snippets Groups Projects
Commit a50e0d08 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Allow switching to interactive mode in the build system

parent e9b0bfd0
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,13 @@ ...@@ -42,6 +42,13 @@
# Regeneration is triggered correctly if the UFL file or the # Regeneration is triggered correctly if the UFL file or the
# form compiler changed. # form compiler changed.
# #
# .. cmake_variable:: UFL2PDELAB_INTERACTIVE
#
# If this variable is set, all code generation will be done in
# interactive mode. This option is interesting in development
# of the form compiler, but might be quite tedious in production
# and automated testing.
#
add_custom_target(generation) add_custom_target(generation)
...@@ -93,6 +100,9 @@ function(add_generated_executable) ...@@ -93,6 +100,9 @@ function(add_generated_executable)
string(REPLACE "/" "_" GEN_MAIN ${GEN_MAIN}) string(REPLACE "/" "_" GEN_MAIN ${GEN_MAIN})
set(GEN_MAIN ${CMAKE_CURRENT_BINARY_DIR}/${GEN_MAIN}) set(GEN_MAIN ${CMAKE_CURRENT_BINARY_DIR}/${GEN_MAIN})
endif() endif()
if(UFL2PDELAB_INTERACTIVE)
set(GEN_FORM_COMPILER_ARGS ${GEN_FORM_COMPILER_ARGS} --interactive)
endif()
# Write a standard main function # Write a standard main function
configure_file(${CMAKE_SOURCE_DIR}/cmake/modules/StandardMain.cmake ${GEN_MAIN}) configure_file(${CMAKE_SOURCE_DIR}/cmake/modules/StandardMain.cmake ${GEN_MAIN})
......
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