Skip to content

Commit

Permalink
symlinks does not work under windows
Browse files Browse the repository at this point in the history
make sure that the data symlinks are actually populated on windows platform
  • Loading branch information
vigsterkr committed Jan 27, 2017
1 parent 7986763 commit 0acff00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/CMakeLists.txt
@@ -1,3 +1,10 @@
# symlinks for windows does not work, not even cmake's create_symlink.
# make sure that the data directories are populated everywhere
IF(WIN32)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_CURRENT_SOURCE_DIR}/undocumented/data")
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/data/toy" "${CMAKE_CURRENT_SOURCE_DIR}/undocumented/data")
ENDIF()

IF (NOT TRAVIS_DISABLE_LIBSHOGUN_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/undocumented/libshogun)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/undocumented/libshogun)
ENDIF()
Expand Down

0 comments on commit 0acff00

Please sign in to comment.