diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2018-05-21 01:27:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-21 01:27:17 +0200 |
| commit | cea78e4fc16a317ef7ffd7dd537c8b47f77dca57 (patch) | |
| tree | 249680970621564360684968da7396fe8d9c11cb /cmake/CheckFileSystemSymlinkSupport.cmake | |
| parent | a752092055ca7c6c3d9d2b74d6ab212db14d0909 (diff) | |
| parent | bd2300fed34b458e4a419a486019afccf2ab39b1 (diff) | |
| download | raylib-cea78e4fc16a317ef7ffd7dd537c8b47f77dca57.tar.gz raylib-cea78e4fc16a317ef7ffd7dd537c8b47f77dca57.zip | |
Travis CI: Test Android configuration (#546)
I don't know if this actually works, but it compiles, which is good enough for CI.
Diffstat (limited to 'cmake/CheckFileSystemSymlinkSupport.cmake')
| -rw-r--r-- | cmake/CheckFileSystemSymlinkSupport.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/CheckFileSystemSymlinkSupport.cmake b/cmake/CheckFileSystemSymlinkSupport.cmake new file mode 100644 index 00000000..798840ef --- /dev/null +++ b/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() + |
