Skip to content
Snippets Groups Projects

the pystencils include directory is now added to the include paths

All threads resolved!
Compare and
1 file
+ 5
1
Preferences
Compare changes
@@ -20,6 +20,10 @@ 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())"
OUTPUT_VARIABLE _Pystencils_INCLUDE_DIR)
string(REGEX REPLACE "\n$" "" Pystencils_INCLUDE_DIR "${_Pystencils_INCLUDE_DIR}")
if(NOT (${_pssfg_result} EQUAL 0))
message( FATAL_ERROR ${_pssfg_stderr} )
endif()
@@ -37,7 +41,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()