summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-12-31 19:34:21 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-12-31 19:34:21 +0000
commitbb8cfd0fec3dcd4be6134350ac1da052473266fe (patch)
treecae32e77ecc2fde23789c62f9e6ea9b573b4929a /libcxx/lib
parentc48bbe71704606b5c56bbb6cec154c24a4fa051d (diff)
downloadbcm5719-llvm-bb8cfd0fec3dcd4be6134350ac1da052473266fe.tar.gz
bcm5719-llvm-bb8cfd0fec3dcd4be6134350ac1da052473266fe.zip
[CMake] Fix c++ abi library configuration on Linux.
You can now configure from the command line using: -DLIBCXX_CXX_ABI=libsupc++ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="path;path Also documents how to build on Linux. llvm-svn: 171316
Diffstat (limited to 'libcxx/lib')
-rw-r--r--libcxx/lib/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index e0f94ca67bd..4ee1f4d0805 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -31,7 +31,9 @@ else()
)
endif()
-add_dependencies(cxx ${LIBCXX_CXX_ABI_DEPS})
+if (DEFINED LIBCXX_CXX_ABI_DEPS)
+ add_dependencies(cxx ${LIBCXX_CXX_ABI_DEPS})
+endif()
# Generate library list.
set(libraries ${LIBCXX_CXX_ABI_LIBRARIES})
OpenPOWER on IntegriCloud