summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2017-01-04 05:49:55 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2017-01-04 05:49:55 +0000
commit99c19ada66d864c55812537149ff9f3d718ffd3b (patch)
tree10c2ddeefaa304e449c9d3567c66affbfc61eec1 /libcxx
parent51f0c20dc290dc72bdad67099f597eaa12e058bd (diff)
downloadbcm5719-llvm-99c19ada66d864c55812537149ff9f3d718ffd3b.tar.gz
bcm5719-llvm-99c19ada66d864c55812537149ff9f3d718ffd3b.zip
build: use more portable spelling for flag
Use `CMAKE_LIBRARY_PATH_FLAG` instead of hard-coding it to -L. This silences a warning with cl which expects `/LIBPATH` instead. llvm-svn: 290938
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/lib/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 4383c07d8d2..857aaaa3bad 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -28,8 +28,9 @@ if(NOT LIBCXX_INSTALL_LIBRARY)
set(exclude_from_all EXCLUDE_FROM_ALL)
endif()
-#if LIBCXX_CXX_ABI_LIBRARY_PATH is defined we want to add it to the search path.
-add_link_flags_if(LIBCXX_CXX_ABI_LIBRARY_PATH "-L${LIBCXX_CXX_ABI_LIBRARY_PATH}")
+# If LIBCXX_CXX_ABI_LIBRARY_PATH is defined we want to add it to the search path.
+add_link_flags_if(LIBCXX_CXX_ABI_LIBRARY_PATH
+ "${CMAKE_LIBRARY_PATH_FLAG}${LIBCXX_CXX_ABI_LIBRARY_PATH}")
add_library_flags_if(LIBCXX_COVERAGE_LIBRARY "${LIBCXX_COVERAGE_LIBRARY}")
OpenPOWER on IntegriCloud