PhysFSConfigVersion.cmake 740 B

12345678910111213141516171819
  1. # PhysFS CMake version configuration file:
  2. # This file is meant to be placed in a cmake subfolder of physfs-devel-3.x.y-mingw
  3. if(CMAKE_SIZEOF_VOID_P EQUAL 4)
  4. set(physfs_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/PhysFS/PhysFSConfigVersion.cmake")
  5. elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
  6. set(physfs_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/PhysFS/PhysFSConfigVersion.cmake")
  7. else()
  8. set(PACKAGE_VERSION_UNSUITABLE TRUE)
  9. return()
  10. endif()
  11. if(NOT EXISTS "${physfs_config_path}")
  12. message(WARNING "${physfs_config_path} does not exist: MinGW development package is corrupted")
  13. set(PACKAGE_VERSION_UNSUITABLE TRUE)
  14. return()
  15. endif()
  16. include("${physfs_config_path}")