Skip to content

Commit

Permalink
Restore fckit-eval script processing of fypp
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed May 6, 2024
1 parent 8c4f39a commit 977cb4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmake/fckit-import.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
if( @PROJECT_NAME@_IS_BUILD_DIR_EXPORT )
set( FCTEST_GENERATOR @Python3_EXECUTABLE@ @CMAKE_CURRENT_SOURCE_DIR@/tools/fctest-generate-runner.py )
set( FCKIT_VENV_EXE @FCKIT_VENV_EXE@ )
set( _fckit_eval_script @CMAKE_CURRENT_SOURCE_DIR@/tools/fckit-eval.sh )
else()
set( FCTEST_GENERATOR @Python3_EXECUTABLE@ ${fckit_BASE_DIR}/libexec/fctest-generate-runner.py )
set( FCKIT_VENV_EXE ${fckit_BASE_DIR}/@rel_venv_exe_path@ )
set( _fckit_eval_script ${fckit_BASE_DIR}/libexec/fckit-eval.sh )
endif()

set( FYPP ${FCKIT_VENV_EXE} -m fypp )
set( FYPP ${_fckit_eval_script} ${FCKIT_VENV_EXE} -m fypp )

@FCKIT_PREPROCESS_FYPP@

Expand Down
2 changes: 1 addition & 1 deletion cmake/fckit_install_venv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ macro( fckit_install_venv )
# compute relative path to venv to aid with installation
cmake_path( RELATIVE_PATH FCKIT_VENV_EXE BASE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} OUTPUT_VARIABLE rel_venv_exe_path )

set( FYPP ${FCKIT_VENV_EXE} -m fypp )
set( FYPP ${CMAKE_CURRENT_SOURCE_DIR}/tools/fckit-eval.sh ${FCKIT_VENV_EXE} -m fypp )

# reset Python3_EXECUTABLE to the system install
set( Python3_EXECUTABLE ${Python3_EXECUTABLE_CACHE} )
Expand Down

0 comments on commit 977cb4d

Please sign in to comment.