CMakeLists.txt
branchwebgl
changeset 8113 0ad9c42dca7c
parent 8111 4307de8780fa
child 8330 aaefa587e277
equal deleted inserted replaced
8111:4307de8780fa 8113:0ad9c42dca7c
    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