[Lldb-commits] [PATCH] D23554: Remove cmake legacy code
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 16 06:35:54 PDT 2016
labath created this revision.
labath added a reviewer: zturner.
labath added a subscriber: lldb-commits.
Cmake 2.8 support is gone and not coming back. We can remove a bit of legacy code now.
https://reviews.llvm.org/D23554
Files:
cmake/modules/AddLLDB.cmake
cmake/modules/LLDBConfig.cmake
source/API/CMakeLists.txt
Index: source/API/CMakeLists.txt
===================================================================
--- source/API/CMakeLists.txt
+++ source/API/CMakeLists.txt
@@ -117,5 +117,5 @@
if (LLDB_WRAP_PYTHON)
add_dependencies(liblldb swig_wrapper)
endif()
-target_link_libraries(liblldb ${cmake_2_8_12_PRIVATE} ${LLDB_SYSTEM_LIBS})
+target_link_libraries(liblldb PRIVATE ${LLDB_SYSTEM_LIBS})
Index: cmake/modules/LLDBConfig.cmake
===================================================================
--- cmake/modules/LLDBConfig.cmake
+++ cmake/modules/LLDBConfig.cmake
@@ -268,16 +268,6 @@
${PACKAGE_VERSION})
message(STATUS "LLDB version: ${LLDB_VERSION}")
-if (CMAKE_VERSION VERSION_LESS 2.8.12)
- set(cmake_2_8_12_INTERFACE)
- set(cmake_2_8_12_PRIVATE)
- set(cmake_2_8_12_PUBLIC)
-else ()
- set(cmake_2_8_12_INTERFACE INTERFACE)
- set(cmake_2_8_12_PRIVATE PRIVATE)
- set(cmake_2_8_12_PUBLIC PUBLIC)
-endif ()
-
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include
Index: cmake/modules/AddLLDB.cmake
===================================================================
--- cmake/modules/AddLLDB.cmake
+++ cmake/modules/AddLLDB.cmake
@@ -4,7 +4,7 @@
endif()
if(${targetkind} MATCHES "SHARED")
- set(LINK_KEYWORD ${cmake_2_8_12_PUBLIC})
+ set(LINK_KEYWORD PUBLIC)
endif()
if(${targetkind} MATCHES "SHARED" OR ${targetkind} MATCHES "EXE")
@@ -62,10 +62,10 @@
if (PARAM_SHARED)
if (LLDB_LINKER_SUPPORTS_GROUPS)
- target_link_libraries(${name} ${cmake_2_8_12_PUBLIC}
+ target_link_libraries(${name} PUBLIC
-Wl,--start-group ${CLANG_USED_LIBS} -Wl,--end-group)
else()
- target_link_libraries(${name} ${cmake_2_8_12_PUBLIC} ${CLANG_USED_LIBS})
+ target_link_libraries(${name} PUBLIC ${CLANG_USED_LIBS})
endif()
endif()
llvm_config(${name} ${LLVM_LINK_COMPONENTS} ${LLVM_PRIVATE_LINK_COMPONENTS})
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23554.68172.patch
Type: text/x-patch
Size: 1964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160816/aa05461b/attachment.bin>
More information about the lldb-commits
mailing list