equal
deleted
inserted
replaced
64 set(CPACK_PACKAGE_VERSION_MAJOR 0) |
64 set(CPACK_PACKAGE_VERSION_MAJOR 0) |
65 set(CPACK_PACKAGE_VERSION_MINOR 9) |
65 set(CPACK_PACKAGE_VERSION_MINOR 9) |
66 set(CPACK_PACKAGE_VERSION_PATCH 19${version_suffix}) |
66 set(CPACK_PACKAGE_VERSION_PATCH 19${version_suffix}) |
67 set(HEDGEWARS_PROTO_VER 44) |
67 set(HEDGEWARS_PROTO_VER 44) |
68 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
68 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
69 SET(REQUIRED_CLANG_VERSION 3.0) |
69 set(required_clang_version 3.0) |
70 |
70 |
71 |
71 |
72 # Check LLVM/Clang version |
72 # Check LLVM/Clang version |
73 FIND_PACKAGE(Clang) |
73 find_package(Clang) |
74 |
74 |
75 IF (CLANG_VERSION VERSION_GREATER REQUIRED_CLANG_VERSION |
75 if (CLANG_VERSION VERSION_LESS required_clang_version) |
76 OR CLANG_VERSION VERSION_EQUAL REQUIRED_CLANG_VERSION) |
76 message(FATAL_ERROR "Necessary LLVM/Clang version not found (version >= ${REQUIRED_CLANG_VERSION} required)") |
77 MESSAGE(STATUS "Found CLANG: ${CLANG_EXECUTABLE} (version ${CLANG_VERSION})") |
77 else() |
78 ELSE() |
78 message(STATUS "Found CLANG: ${CLANG_EXECUTABLE} (version ${CLANG_VERSION})") |
79 MESSAGE(FATAL_ERROR "Necessary LLVM/Clang version not found (version >= ${REQUIRED_CLANG_VERSION} required)") |
79 endif() |
80 ENDIF() |
|
81 |
80 |
82 |
81 |
83 #bundle .app setup |
82 #bundle .app setup |
84 if(APPLE OR CROSSAPPLE) |
83 if(APPLE OR CROSSAPPLE) |
85 #paths for creating the bundle |
84 #paths for creating the bundle |