CMakeLists.txt
changeset 10013 4d7302e9b617
parent 10008 b8b91c7e0da8
child 10015 4feced261c68
child 10024 7d21f52f0452
equal deleted inserted replaced
10012:82dd9f0c88f7 10013:4d7302e9b617
   155         string(REGEX MATCH "([0-9]+)" physfs_minorversion "${physfs_minorversion}")
   155         string(REGEX MATCH "([0-9]+)" physfs_minorversion "${physfs_minorversion}")
   156         string(REGEX MATCH "([0-9]+)" physfs_patchversion "${physfs_patchversion}")
   156         string(REGEX MATCH "([0-9]+)" physfs_patchversion "${physfs_patchversion}")
   157         set(physfs_detected_ver "${physfs_majorversion}.${physfs_minorversion}.${physfs_patchversion}")
   157         set(physfs_detected_ver "${physfs_majorversion}.${physfs_minorversion}.${physfs_patchversion}")
   158 
   158 
   159         if(${physfs_detected_ver} VERSION_LESS 2.0.0)
   159         if(${physfs_detected_ver} VERSION_LESS 2.0.0)
   160             message(FATAL_ERROR "PhysFS version is too old (detected ${physfs_detected_ver}, required 2.0.0)"
   160             message(FATAL_ERROR "PhysFS version is too old (detected ${physfs_detected_ver}, required 2.0.0)\n"
   161                                 "Perform an update or rerun cmake with -DPHYSFS_SYSTEM=off to build the internal version")
   161                                 "Perform an update or rerun cmake with -DPHYSFS_SYSTEM=off to build the internal version")
   162         endif()
   162         endif()
   163     endif()
   163     endif()
   164 
   164 
   165     if(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)
   165     if(PHYSFS_LIBRARY AND PHYSFS_INCLUDE_DIR)