Skip to content
Snippets Groups Projects
Commit 953968c3 authored by Christoph Alt's avatar Christoph Alt Committed by Frederik Hennig
Browse files

the pystencils include directory is now added to the include paths

parent c70a1c03
No related branches found
No related tags found
1 merge request!9the pystencils include directory is now added to the include paths
......@@ -20,6 +20,9 @@ function(_pssfg_add_gen_source target script)
OUTPUT_VARIABLE generatedSources RESULT_VARIABLE _pssfg_result
ERROR_VARIABLE _pssfg_stderr)
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)
if(NOT (${_pssfg_result} EQUAL 0))
message( FATAL_ERROR ${_pssfg_stderr} )
endif()
......@@ -37,7 +40,7 @@ function(_pssfg_add_gen_source target script)
WORKING_DIRECTORY "${generatedSourcesDir}")
target_sources(${target} PRIVATE ${generatedSourcesAbsolute})
target_include_directories(${target} PRIVATE ${PystencilsSfg_GENERATED_SOURCES_DIR})
target_include_directories(${target} PRIVATE ${PystencilsSfg_GENERATED_SOURCES_DIR} ${_Pystencils_INCLUDE_DIR})
endfunction()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment