CMakeLists.txt
changeset 9991 3858d99476f5
parent 9988 317d46a2afd2
child 9994 8455993a7a1b
equal deleted inserted replaced
9990:c8443c53eb33 9991:3858d99476f5
   151         string(REGEX MATCH "([0-9]+)" physfs_majorversion "${physfs_majorversion}")
   151         string(REGEX MATCH "([0-9]+)" physfs_majorversion "${physfs_majorversion}")
   152         string(REGEX MATCH "([0-9]+)" physfs_minorversion "${physfs_minorversion}")
   152         string(REGEX MATCH "([0-9]+)" physfs_minorversion "${physfs_minorversion}")
   153         string(REGEX MATCH "([0-9]+)" physfs_patchversion "${physfs_patchversion}")
   153         string(REGEX MATCH "([0-9]+)" physfs_patchversion "${physfs_patchversion}")
   154         set(physfs_detected_ver "${physfs_majorversion}.${physfs_minorversion}.${physfs_patchversion}")
   154         set(physfs_detected_ver "${physfs_majorversion}.${physfs_minorversion}.${physfs_patchversion}")
   155 
   155 
   156         if(${physfs_detected_ver} VERSION_LESS "2.1.0")
   156         if (physfs_detected_ver VERSION_LESS "2.0.0")
   157             message(FATAL_ERROR "PhysFS version is too old (dected ${physfs_detected_ver}, required 2.1.0)")
   157             message(FATAL_ERROR "PhysFS version is too old (detected ${physfs_detected_ver}, required 2.0.0)")
   158             set(physfs_too_old true)
   158             set(physfs_too_old true)
   159         endif()
   159         endif()
   160     endif()
   160     endif()
   161 
   161 
   162     if(NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR)
   162     if(NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR)