CMakeLists.txt
changeset 9965 7ced30acf533
parent 9963 9e75dbffec81
child 9988 317d46a2afd2
equal deleted inserted replaced
9963:9e75dbffec81 9965:7ced30acf533
   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.1.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 (dected ${physfs_detected_ver}, required 2.1.0)")
   158             set(physfs_too_old true)
   158             set(physfs_too_old true)
   159         endif()
   159         endif()
   160     endif()
   160     endif()
   161 
   161