Skip to content

Commit

Permalink
Merge pull request #3 from luminartech/feature/CSF-882_symlink_on_win
Browse files Browse the repository at this point in the history
CSF-882: Disable symlink on Windows
  • Loading branch information
matthew-limbinar authored Nov 19, 2020
2 parents 0260716 + 4f1f829 commit f598eab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions c++/src/capnp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ if(NOT CAPNP_LITE)

install(TARGETS capnp_tool capnpc_cpp capnpc_capnp ${INSTALL_TARGETS_DEFAULT_ARGS})

# Symlink capnpc -> capnp
install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink capnp \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/capnpc\")")
if(NOT WIN32)
# Symlink capnpc -> capnp
install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink capnp \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/capnpc\")")
endif()
endif() # NOT CAPNP_LITE

# Tests ========================================================================
Expand Down

0 comments on commit f598eab

Please sign in to comment.