File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ string(REGEX REPLACE "CBMC_VERSION = (.*)" "\\1" CBMC_VERSION ${CBMC_VERSION})
45
45
46
46
project (CBMC VERSION ${CBMC_VERSION} )
47
47
48
+ set (CBMC_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
49
+
48
50
# when config.inc changes we’ll need to reconfigure to check if the version changed
49
51
set_property (DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /src/config.inc" )
50
52
Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ endif()
58
58
59
59
# bash completion
60
60
if (NOT WIN32 )
61
- add_custom_command (OUTPUT "${CMAKE_SOURCE_DIR } /scripts/bash-autocomplete/cbmc.sh"
62
- COMMAND "${CMAKE_SOURCE_DIR } /scripts/bash-autocomplete/extract_switches.sh"
61
+ add_custom_command (OUTPUT "${CBMC_ROOT_DIR } /scripts/bash-autocomplete/cbmc.sh"
62
+ COMMAND "${CBMC_ROOT_DIR } /scripts/bash-autocomplete/extract_switches.sh"
63
63
DEPENDS $<TARGET_FILE:cbmc>
64
64
)
65
65
add_custom_target (cbmc.sh ALL
66
- DEPENDS "${CMAKE_SOURCE_DIR } /scripts/bash-autocomplete/cbmc.sh"
66
+ DEPENDS "${CBMC_ROOT_DIR } /scripts/bash-autocomplete/cbmc.sh"
67
67
)
68
68
install (
69
- FILES ${CMAKE_SOURCE_DIR } /scripts/bash-autocomplete/cbmc.sh
69
+ FILES ${CBMC_ROOT_DIR } /scripts/bash-autocomplete/cbmc.sh
70
70
DESTINATION etc/bash_completion.d
71
71
RENAME cbmc
72
72
)
You can’t perform that action at this time.
0 commit comments