Skip to content

Commit

Permalink
Merge pull request diffblue#8285 from guijan/develop
Browse files Browse the repository at this point in the history
CMake: use find_program() to look for bash
  • Loading branch information
tautschnig authored Jun 14, 2024
2 parents 77b4d4d + ebe2a9a commit 2a5151c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cbmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ endif()

# bash completion
if(NOT WIN32)
find_program(BASH_PROGRAM bash REQUIRED)
add_custom_command(OUTPUT "${CBMC_ROOT_DIR}/scripts/bash-autocomplete/cbmc.sh"
COMMAND "${CBMC_ROOT_DIR}/scripts/bash-autocomplete/extract_switches.sh" "${CMAKE_CXX_COMPILER}"
COMMAND "${BASH_PROGRAM}" "${CBMC_ROOT_DIR}/scripts/bash-autocomplete/extract_switches.sh" "${CMAKE_CXX_COMPILER}"
DEPENDS $<TARGET_FILE:cbmc>
)
add_custom_target(cbmc.sh ALL
Expand Down

0 comments on commit 2a5151c

Please sign in to comment.