Skip to content
Snippets Groups Projects
Commit ca7e42b3 authored by Christoph Alt's avatar Christoph Alt
Browse files

using python's print functionality to remove the newline

parent 011a071c
Branches
No related merge requests found
Pipeline #71540 passed with stages
in 2 minutes and 35 seconds
...@@ -20,9 +20,8 @@ function(_pssfg_add_gen_source target script) ...@@ -20,9 +20,8 @@ function(_pssfg_add_gen_source target script)
OUTPUT_VARIABLE generatedSources RESULT_VARIABLE _pssfg_result OUTPUT_VARIABLE generatedSources RESULT_VARIABLE _pssfg_result
ERROR_VARIABLE _pssfg_stderr) ERROR_VARIABLE _pssfg_stderr)
execute_process(COMMAND ${Python_EXECUTABLE} -c "from pystencils.include import get_pystencils_include_path; print(get_pystencils_include_path())" execute_process(COMMAND ${Python_EXECUTABLE} -c "from pystencils.include import get_pystencils_include_path; print(get_pystencils_include_path(), end='')"
OUTPUT_VARIABLE _Pystencils_INCLUDE_DIR) OUTPUT_VARIABLE _Pystencils_INCLUDE_DIR)
string(REGEX REPLACE "\n$" "" Pystencils_INCLUDE_DIR "${_Pystencils_INCLUDE_DIR}")
if(NOT (${_pssfg_result} EQUAL 0)) if(NOT (${_pssfg_result} EQUAL 0))
message( FATAL_ERROR ${_pssfg_stderr} ) message( FATAL_ERROR ${_pssfg_stderr} )
...@@ -41,7 +40,7 @@ function(_pssfg_add_gen_source target script) ...@@ -41,7 +40,7 @@ function(_pssfg_add_gen_source target script)
WORKING_DIRECTORY "${generatedSourcesDir}") WORKING_DIRECTORY "${generatedSourcesDir}")
target_sources(${target} PRIVATE ${generatedSourcesAbsolute}) target_sources(${target} PRIVATE ${generatedSourcesAbsolute})
target_include_directories(${target} PRIVATE ${PystencilsSfg_GENERATED_SOURCES_DIR} ${Pystencils_INCLUDE_DIR}) target_include_directories(${target} PRIVATE ${PystencilsSfg_GENERATED_SOURCES_DIR} ${_Pystencils_INCLUDE_DIR})
endfunction() endfunction()
......
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