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

[!306] [cmake][bugfix] Fix handling of absolute paths for UFL files

Merge branch 'bugfix/absolute-path-to-uflfile' into 'master'

ref:extensions/dune-codegen This fixes [#143]

See merge request [extensions/dune-codegen!306]

  [#143]: gitlab.dune-project.org/NoneNone/issues/143
  [extensions/dune-codegen!306]: gitlab.dune-project.org/extensions/dune-codegen/merge_requests/306


Closes #143
parents 1d21972d e2896fa3
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ function(add_generated_executable) ...@@ -116,7 +116,7 @@ function(add_generated_executable)
if(NOT GEN_UFLFILE) if(NOT GEN_UFLFILE)
message(FATAL_ERROR "Need to specify the UFLFILE parameter for add_generated_executable") message(FATAL_ERROR "Need to specify the UFLFILE parameter for add_generated_executable")
endif() endif()
if(NOT IS_ABSOLUTE GEN_UFLFILE) if(NOT IS_ABSOLUTE ${GEN_UFLFILE})
set(GEN_UFLFILE ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_UFLFILE}) set(GEN_UFLFILE ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_UFLFILE})
endif() endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_INIFILE}) if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_INIFILE})
......
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