[libcxx] r250319 - [libcxx] Make it drastically simpler to link libc++.

Hahnfeld, Jonas via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 00:39:41 PDT 2015


> -----Original Message-----
> From: cfe-commits [mailto:cfe-commits-bounces at lists.llvm.org] On Behalf
> Of Eric Fiselier via cfe-commits
> Sent: Wednesday, October 14, 2015 9:54 PM
> To: cfe-commits at lists.llvm.org
> Subject: [libcxx] r250319 - [libcxx] Make it drastically simpler to link 
> libc++.
>
> Author: ericwf
> Date: Wed Oct 14 14:54:03 2015
> New Revision: 250319
>
> URL: http://llvm.org/viewvc/llvm-project?rev=250319&view=rev
> Log:
> [libcxx] Make it drastically simpler to link libc++.
[...]
>  if (LIBCXX_INSTALL_LIBRARY)
>    install(TARGETS cxx
>      LIBRARY DESTINATION lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT libcxx
>      ARCHIVE DESTINATION lib${LIBCXX_LIBDIR_SUFFIX} COMPONENT libcxx
>      )
> +  # NOTE: This install command must go after the cxx install command
> + otherwise  # it will not be executed after the library symlinks are 
> installed.
> +  if (LIBCXX_ENABLE_ABI_LINKER_SCRIPT)
> +    install(FILES "$<TARGET_LINKER_FILE:cxx>"
> +      DESTINATION lib${LIBCXX_LIBDIR_SUFFIX}
> +      COMPONENT libcxx)
> +  endif()
>  endif()

Generator expressions in install(FILES) are only allowed since CMake 3.0 
(https://cmake.org/cmake/help/v3.0/release/3.0.0.html#commands).
The current minimum for libcxx is 2.8, so this should either be raised or we 
have to find another possibility of writing this install command...

Greetings
Jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151021/8103755a/attachment.bin>


More information about the cfe-commits mailing list