Lines 4-10
cmake_minimum_required(VERSION 2.8.12.2)
Link Here
|
4 |
|
4 |
|
5 |
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) |
5 |
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) |
6 |
message(STATUS "No build type selected, default to Debug") |
6 |
message(STATUS "No build type selected, default to Debug") |
7 |
set(CMAKE_BUILD_TYPE "Debug") |
7 |
#IGNORE set(CMAKE_BUILD_TYPE "Debug") |
8 |
endif() |
8 |
endif() |
9 |
|
9 |
|
10 |
if(POLICY CMP0022) |
10 |
if(POLICY CMP0022) |
Lines 152-161
endif()
Link Here
|
152 |
|
152 |
|
153 |
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) |
153 |
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE) |
154 |
|
154 |
|
155 |
if (NOT uppercase_CMAKE_BUILD_TYPE MATCHES "^(DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL)$") |
|
|
156 |
message(FATAL_ERROR "Invalid value for CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}") |
157 |
endif() |
158 |
|
159 |
set(LLVM_LIBDIR_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) |
155 |
set(LLVM_LIBDIR_SUFFIX "" CACHE STRING "Define suffix of library directory name (32/64)" ) |
160 |
|
156 |
|
161 |
# They are used as destination of target generators. |
157 |
# They are used as destination of target generators. |