aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDDoSolitary <DDoSolitary@gmail.com>2021-02-05 15:14:22 +0800
committerJakub Jelen <jjelen@redhat.com>2021-02-15 10:04:31 +0100
commitc8b2e68fb85283856dc8ab6bed7f8730a38e93f6 (patch)
treec70c7bf98f2ab42f6962822c28b35c12dc706dbb /CMakeLists.txt
parent06799453835d2c6608c074823ccfc399ccc0c525 (diff)
downloadlibssh-c8b2e68fb85283856dc8ab6bed7f8730a38e93f6.tar.gz
libssh-c8b2e68fb85283856dc8ab6bed7f8730a38e93f6.tar.xz
libssh-c8b2e68fb85283856dc8ab6bed7f8730a38e93f6.zip
cmake: Support build directories with special characters
Signed-off-by: DDoSolitary <DDoSolitary@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8b4b0bc..1f1925ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,10 +216,10 @@ if (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
endif(UPDATE_ABI)
endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
-add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET})
+add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET} VERBATIM)
# Link compile database for clangd
-execute_process(COMMAND cmake -E create_symlink
+execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
"${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}/compile_commands.json")