You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 rivejä
535 B

  1. # Populates a ${FILESYSTEM_LACKS_SYMLINKS} variable
  2. message(STATUS "Testing if file system supports symlinks")
  3. execute_process(
  4. COMMAND ${CMAKE_COMMAND} -E create_symlink CMakeLists.txt "${CMAKE_CURRENT_BINARY_DIR}/TestingIfSymlinkWorks"
  5. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  6. RESULT_VARIABLE FILESYSTEM_LACKS_SYMLINKS
  7. )
  8. If (FILESYSTEM_LACKS_SYMLINKS)
  9. message(STATUS "Testing if file system supports symlinks -- unsupported")
  10. else()
  11. message(STATUS "Testing if file system supports symlinks -- supported")
  12. endif()