summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-03-19 15:40:23 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-03-19 15:40:23 +0000
commitb2f52bb9823b524488d916c893c1897adb095ada (patch)
tree83ab688cc6688607934e8adc7ed03877b40fa8e5 /libcxx/lib
parent3fb2fc6edb5d7d90694597b35116ba56deec9cc6 (diff)
downloadbcm5719-llvm-b2f52bb9823b524488d916c893c1897adb095ada.tar.gz
bcm5719-llvm-b2f52bb9823b524488d916c893c1897adb095ada.zip
Allow libc++ to be built with CMake from within the LLVM tree. The libc++ part is just some renaming as the variable was already in use, conflicting with something else in the LLVM tree. Contributed by Ruben Van Boxem.
llvm-svn: 153036
Diffstat (limited to 'libcxx/lib')
-rw-r--r--libcxx/lib/CMakeLists.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index f4af4e06972..0418b1c9117 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -1,33 +1,33 @@
# Get sources
-file(GLOB sources ../src/*.cpp)
+file(GLOB LIBCXX_SOURCES ../src/*.cpp)
if(WIN32)
- file(GLOB win32_sources ../src/support/win32/*.cpp)
- list(APPEND sources ${win32_sources})
+ file(GLOB LIBCXX_WIN32_SOURCES ../src/support/win32/*.cpp)
+ list(APPEND LIBCXX_SOURCES ${LIBCXX_WIN32_SOURCES})
endif()
# Add all the headers to the project for IDEs.
if (MSVC_IDE OR XCODE)
- file(GLOB_RECURSE headers ../include/*)
+ file(GLOB_RECURSE LIBCXX_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/*)
if(WIN32)
- file( GLOB win32_headers ../include/support/win32/*.h)
- list(APPEND headers ${win32_headers})
+ file( GLOB LIBCXX_WIN32_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/support/win32/*.h)
+ list(APPEND LIBCXX_HEADERS ${LIBCXX_WIN32_HEADERS})
endif()
# Force them all into the headers dir on MSVC, otherwise they end up at
# project scope because they don't have extensions.
if (MSVC_IDE)
- source_group("Header Files" FILES ${headers})
+ source_group("Header Files" FILES ${LIBCXX_HEADERS})
endif()
endif()
if (LIBCXX_ENABLE_SHARED)
add_library(cxx SHARED
- ${sources}
- ${headers}
+ ${LIBCXX_SOURCES}
+ ${LIBCXX_HEADERS}
)
else()
add_library(cxx STATIC
- ${sources}
- ${headers}
+ ${LIBCXX_SOURCES}
+ ${LIBCXX_HEADERS}
)
endif()
OpenPOWER on IntegriCloud