[PATCH] D40744: [cmake] Modernize some conditionals. NFC
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 17:20:35 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL319723: [cmake] Modernize some conditionals. NFC (authored by smeenai).
Repository:
rL LLVM
https://reviews.llvm.org/D40744
Files:
llvm/trunk/cmake/modules/LLVM-Config.cmake
Index: llvm/trunk/cmake/modules/LLVM-Config.cmake
===================================================================
--- llvm/trunk/cmake/modules/LLVM-Config.cmake
+++ llvm/trunk/cmake/modules/LLVM-Config.cmake
@@ -99,9 +99,9 @@
llvm_map_components_to_libnames(LIBRARIES ${link_components})
get_target_property(t ${executable} TYPE)
- if("x${t}" STREQUAL "xSTATIC_LIBRARY")
+ if(t STREQUAL "STATIC_LIBRARY")
target_link_libraries(${executable} INTERFACE ${LIBRARIES})
- elseif("x${t}" STREQUAL "xSHARED_LIBRARY" OR "x${t}" STREQUAL "xMODULE_LIBRARY")
+ elseif(t STREQUAL "SHARED_LIBRARY" OR t STREQUAL "MODULE_LIBRARY")
target_link_libraries(${executable} PRIVATE ${LIBRARIES})
else()
# Use plain form for legacy user.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40744.125459.patch
Type: text/x-patch
Size: 750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171205/c8bacca6/attachment.bin>
More information about the llvm-commits
mailing list