summaryrefslogtreecommitdiff
path: root/libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake')
-rw-r--r--libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake b/libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake
new file mode 100644
index 0000000..798840e
--- /dev/null
+++ b/libs/raylib/cmake/CheckFileSystemSymlinkSupport.cmake
@@ -0,0 +1,13 @@
+# Populates a ${FILESYSTEM_LACKS_SYMLINKS} variable
+message(STATUS "Testing if file system supports symlinks")
+execute_process(
+ COMMAND ${CMAKE_COMMAND} -E create_symlink CMakeLists.txt "${CMAKE_CURRENT_BINARY_DIR}/TestingIfSymlinkWorks"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ RESULT_VARIABLE FILESYSTEM_LACKS_SYMLINKS
+)
+If (FILESYSTEM_LACKS_SYMLINKS)
+ message(STATUS "Testing if file system supports symlinks -- unsupported")
+else()
+ message(STATUS "Testing if file system supports symlinks -- supported")
+endif()
+