File tree 5 files changed +8
-18
lines changed
ExecutionEngine/Interpreter
5 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 1
1
# See docs/CMake.html for instructions about how to build LLVM with CMake.
2
2
3
- cmake_minimum_required (VERSION 2.8.8 )
3
+ cmake_minimum_required (VERSION 2.8.12.2 )
4
4
5
5
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
6
6
message (STATUS "No build type selected, default to Debug" )
7
7
set (CMAKE_BUILD_TYPE "Debug" )
8
8
endif ()
9
9
10
- # FIXME: It may be removed when we use 2.8.12.
11
- if (CMAKE_VERSION VERSION_LESS 2.8.12)
12
- # Invalidate a couple of keywords.
13
- set (cmake_2_8_12_INTERFACE)
14
- set (cmake_2_8_12_PRIVATE)
15
- else ()
16
- # Use ${cmake_2_8_12_KEYWORD} intead of KEYWORD in target_link_libraries().
17
- set (cmake_2_8_12_INTERFACE INTERFACE )
18
- set (cmake_2_8_12_PRIVATE PRIVATE )
19
- if (POLICY CMP0022)
20
- cmake_policy (SET CMP0022 NEW) # automatic when 2.8.12 is required
21
- endif ()
10
+ if (POLICY CMP0022)
11
+ cmake_policy (SET CMP0022 NEW) # automatic when 2.8.12 is required
22
12
endif ()
23
13
24
14
if (CMAKE_VERSION VERSION_LESS 3.1.20141117)
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ function(explicit_llvm_config executable)
41
41
llvm_map_components_to_libnames(LIBRARIES ${link_components} )
42
42
get_target_property (t ${executable} TYPE )
43
43
if ("x${t} " STREQUAL "xSTATIC_LIBRARY" )
44
- target_link_libraries (${executable} ${cmake_2_8_12_INTERFACE} ${LIBRARIES} )
44
+ target_link_libraries (${executable} INTERFACE ${LIBRARIES} )
45
45
elseif ("x${t} " STREQUAL "xSHARED_LIBRARY" OR "x${t} " STREQUAL "xMODULE_LIBRARY" )
46
- target_link_libraries (${executable} ${cmake_2_8_12_PRIVATE} ${LIBRARIES} )
46
+ target_link_libraries (${executable} PRIVATE ${LIBRARIES} )
47
47
else ()
48
48
# Use plain form for legacy user.
49
49
target_link_libraries (${executable} ${LIBRARIES} )
Original file line number Diff line number Diff line change @@ -72,4 +72,4 @@ add_llvm_library(LLVMDebugInfoPDB
72
72
${LIBPDB_ADDITIONAL_HEADER_DIRS}
73
73
)
74
74
75
- target_link_libraries (LLVMDebugInfoPDB ${cmake_2_8_12_INTERFACE} "${LIBPDB_ADDITIONAL_LIBRARIES} " )
75
+ target_link_libraries (LLVMDebugInfoPDB INTERFACE "${LIBPDB_ADDITIONAL_LIBRARIES} " )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ add_llvm_library(LLVMInterpreter
13
13
)
14
14
15
15
if ( LLVM_ENABLE_FFI )
16
- target_link_libraries ( LLVMInterpreter ${cmake_2_8_12_PRIVATE} ${FFI_LIBRARY_PATH} )
16
+ target_link_libraries ( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
17
17
endif ()
18
18
19
19
add_dependencies (LLVMInterpreter intrinsics_gen)
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") # FIXME: It should be "GNU ld for el
90
90
set (LIB_NAMES -Wl,--whole-archive ${LIB_NAMES} -Wl,--no -whole-archive)
91
91
endif ()
92
92
93
- target_link_libraries (LLVM ${cmake_2_8_12_PRIVATE} ${LIB_NAMES} )
93
+ target_link_libraries (LLVM PRIVATE ${LIB_NAMES} )
94
94
95
95
add_dependencies (LLVM libLLVMExports)
96
96
You can’t perform that action at this time.
0 commit comments