vcpkg/ports/libssh/0003-create_symlink_unix_only.patch
JonLiu1993 ee0584f050
[libssh/libressl] update to the latest version (#20067)
* [libssh/libssh2/libssh2] update to the latest version

* update version

* update patches formating

* update version

* update hash512

* update version'

* fix CI build error

* update version

* update vcpkg.json and portifile.cmake

* update version

* delete hash

* update version

* revert libssh2

* update version

* revert libssh2

* update portfile.cmake

* update version
2021-09-27 17:26:06 -07:00

18 lines
673 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 53e6bd5..51d76c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,10 +231,11 @@ endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET} VERBATIM)
# Link compile database for clangd
+if(UNIX)
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
"${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}/compile_commands.json")
-
+endif()
message(STATUS "********************************************")
message(STATUS "********** ${PROJECT_NAME} build options : **********")