Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

13 rader
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()