equal
deleted
inserted
replaced
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) |