Skip to content

Commit

Permalink
Merge pull request #1132 from VincentRouvreau/symbolic_links_for_setu…
Browse files Browse the repository at this point in the history
…p_py_part2

copy_on_error if symbolic link failed to be created
  • Loading branch information
VincentRouvreau authored Sep 24, 2024
2 parents 2309ecf + bfdbaec commit 1186510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ function( add_gudhi_symbolic_links GLOBBING_EXPRESSION )
endif()
file(GLOB GUDHI_GLOB_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${GLOBBING_EXPRESSION})
foreach(GUDHI_GLOB_FILENAME ${GUDHI_GLOB_FILES})
file(CREATE_LINK "${CMAKE_CURRENT_SOURCE_DIR}/${GUDHI_GLOB_FILENAME}" "${CMAKE_CURRENT_BINARY_DIR}/${GUDHI_GLOB_FILENAME}" SYMBOLIC)
# COPY_ON_ERROR is activated because on windows 10, user needs to be root or in dev mode to be able to make symbolic links
# This case can be problematic, because if you modify the sources, build is still done on the copy
file(CREATE_LINK "${CMAKE_CURRENT_SOURCE_DIR}/${GUDHI_GLOB_FILENAME}" "${CMAKE_CURRENT_BINARY_DIR}/${GUDHI_GLOB_FILENAME}" COPY_ON_ERROR SYMBOLIC)
endforeach()
endfunction( add_gudhi_symbolic_links )

Expand Down

0 comments on commit 1186510

Please sign in to comment.