[libunwind] aa582e3 - unwind: reflow some of the build rules (NFC)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 6 15:43:10 PST 2019
Author: Saleem Abdulrasool
Date: 2019-11-06T15:42:09-08:00
New Revision: aa582e3648cc4036aec3b9302ab93bfe9929d19c
URL: https://github.com/llvm/llvm-project/commit/aa582e3648cc4036aec3b9302ab93bfe9929d19c
DIFF: https://github.com/llvm/llvm-project/commit/aa582e3648cc4036aec3b9302ab93bfe9929d19c.diff
LOG: unwind: reflow some of the build rules (NFC)
Reflow the CMake properties to take less vertical space. This just
makes it easier to read. NFC.
Added:
Modified:
libunwind/src/CMakeLists.txt
Removed:
################################################################################
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt
index 2dab16afbdf9..eaa8ae6ca980 100644
--- a/libunwind/src/CMakeLists.txt
+++ b/libunwind/src/CMakeLists.txt
@@ -120,24 +120,15 @@ if (LIBUNWIND_ENABLE_SHARED)
llvm_setup_rpath(unwind_shared)
endif()
target_link_libraries(unwind_shared PRIVATE ${LIBUNWIND_LIBRARIES})
- set_target_properties(unwind_shared
- PROPERTIES
- CXX_EXTENSIONS
- OFF
- CXX_STANDARD
- 11
- CXX_STANDARD_REQUIRED
- ON
- COMPILE_FLAGS
- "${LIBUNWIND_COMPILE_FLAGS}"
- LINK_FLAGS
- "${LIBUNWIND_LINK_FLAGS}"
- OUTPUT_NAME
- "unwind"
- VERSION
- "1.0"
- SOVERSION
- "1")
+ set_target_properties(unwind_shared PROPERTIES
+ CXX_EXTENSIONS OFF
+ CXX_STANDARD 11
+ CXX_STANDARD_REQUIRED ON
+ COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}"
+ LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}"
+ OUTPUT_NAME "unwind"
+ VERSION "1.0"
+ SOVERSION "1")
list(APPEND LIBUNWIND_BUILD_TARGETS "unwind_shared")
if (LIBUNWIND_INSTALL_SHARED_LIBRARY)
list(APPEND LIBUNWIND_INSTALL_TARGETS "unwind_shared")
@@ -153,20 +144,13 @@ if (LIBUNWIND_ENABLE_STATIC)
target_compile_options(unwind_static PRIVATE -fno-rtti)
endif()
target_link_libraries(unwind_static PRIVATE ${LIBUNWIND_LIBRARIES})
- set_target_properties(unwind_static
- PROPERTIES
- CXX_EXTENSIONS
- OFF
- CXX_STANDARD
- 11
- CXX_STANDARD_REQUIRED
- ON
- COMPILE_FLAGS
- "${LIBUNWIND_COMPILE_FLAGS}"
- LINK_FLAGS
- "${LIBUNWIND_LINK_FLAGS}"
- OUTPUT_NAME
- "unwind")
+ set_target_properties(unwind_static PROPERTIES
+ CXX_EXTENSIONS OFF
+ CXX_STANDARD 11
+ CXX_STANDARD_REQUIRED ON
+ COMPILE_FLAGS "${LIBUNWIND_COMPILE_FLAGS}"
+ LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}"
+ OUTPUT_NAME "unwind")
if(LIBUNWIND_HERMETIC_STATIC_LIBRARY)
append_flags_if_supported(UNWIND_STATIC_LIBRARY_FLAGS -fvisibility=hidden)
More information about the cfe-commits
mailing list