Skip to content
Snippets Groups Projects
Commit ef90b2a9 authored by Robert K's avatar Robert K
Browse files

[bugfix] removed N in fromt of cpp parameter.

parent e5c7802c
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ function(add_code_generate_targets)
#obtain compile definitions
get_target_property( compiledefs ${_target} COMPILE_DEFINITIONS )
string(REPLACE "compiledefs-NOTFOUND" "" compiledefs "${compiledefs}")
#optain sources target depends on
get_target_property( compilesources ${_target} SOURCES )
string(REPLACE "compilesources-NOTFOUND" "" compilesources "${compilesources}")
......@@ -17,15 +17,15 @@ function(add_code_generate_targets)
dune_target_link_libraries( ${_target}_generatecode "${DUNE_LIBS}" )
add_executable( ${_target}_compilecode ${compilesources} )
set_property(TARGET ${_target}_compilecode APPEND PROPERTY COMPILE_DEFINITIONS "NUSE_BASEFUNCTIONSET_CODEGEN;${compiledefs}")
set_property(TARGET ${_target}_compilecode APPEND PROPERTY COMPILE_DEFINITIONS "USE_BASEFUNCTIONSET_CODEGEN;${compiledefs}")
dune_target_link_libraries( ${_target}_compilecode "${DUNE_LIBS}" )
add_custom_target( ${_target}_generate
${CMAKE_COMMAND} -D RUN_CODEGEN_PROGRAM=${CMAKE_CURRENT_BINARY_DIR}/${_target}_generatecode -D RUN_CODEGEN_PARAMFILE="" -P ${CMAKE_SOURCE_DIR}/cmake/scripts/RunGenerate.cmake )
add_custom_target( ${_target}_generate
${CMAKE_COMMAND} -D RUN_CODEGEN_PROGRAM=${CMAKE_CURRENT_BINARY_DIR}/${_target}_generatecode -D RUN_CODEGEN_PARAMFILE="" -P ${CMAKE_SOURCE_DIR}/cmake/scripts/RunGenerate.cmake )
add_custom_target( ${_target}_codegen )
#Add depenencies
#Add depenencies
add_dependencies( ${_target}_generate ${_target}_generatecode )
add_dependencies( ${_target}_compilecode ${_target}_generate )
add_dependencies( ${_target}_codegen ${_target}_compilecode )
......
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