diff --git a/.gitignore b/.gitignore index 1fb70e8b5..4459c9e53 100644 --- a/.gitignore +++ b/.gitignore @@ -104,7 +104,6 @@ CMakeCache.txt CMakeFiles CMakeScripts Testing -TestingIfSymlinkWorks cmake_install.cmake install_manifest.txt compile_commands.json diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 index be74c4da2..bbac563ca --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,6 @@ add_if_flag_compiles(-Werror=implicit-function-declaration CMAKE_C_FLAGS) # src/external/jar_xm.h does shady stuff add_if_flag_compiles(-fno-strict-aliasing CMAKE_C_FLAGS) -include(CheckFileSystemSymlinkSupport) - if (ENABLE_ASAN) add_if_flag_compiles(-fno-omit-frame-pointer CMAKE_C_FLAGS CMAKE_LINKER_FLAGS) add_if_flag_compiles(-fsanitize=address CMAKE_C_FLAGS CMAKE_LINKER_FLAGS) diff --git a/cmake/CheckFileSystemSymlinkSupport.cmake b/cmake/CheckFileSystemSymlinkSupport.cmake deleted file mode 100644 index 8eb508cb8..000000000 --- a/cmake/CheckFileSystemSymlinkSupport.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# 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 - ERROR_QUIET -) -If (FILESYSTEM_LACKS_SYMLINKS) - message(STATUS "Testing if file system supports symlinks -- unsupported") -else() - message(STATUS "Testing if file system supports symlinks -- supported") -endif() - diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2cee1b6b5..aba877e77 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -208,16 +208,10 @@ if(SHARED) if (${PLATFORM} MATCHES "Desktop") target_link_libraries(raylib glfw) endif() - if (UNIX AND ${FILESYSTEM_LACKS_SYMLINKS}) - MESSAGE(WARNING "Can't version UNIX shared library on file system without symlink support") - else() - set_target_properties(raylib PROPERTIES - VERSION ${PROJECT_VERSION} - SOVERSION ${API_VERSION} - ) - endif() set_target_properties(raylib PROPERTIES PUBLIC_HEADER "raylib.h" + VERSION ${PROJECT_VERSION} + SOVERSION ${API_VERSION} ) if (WIN32)