From eff015538b70adcb9f3976ac8d2181513e28c1c1 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 12 Dec 2017 01:20:52 +0000 Subject: [CMake] Support runtimes and monorepo layouts when looking for libcxx This also slightly refactors the code that's checking the directory presence which allows eliminating one unnecessary variable. Differential Revision: https://reviews.llvm.org/D40637 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320446 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/Modules/AddCompilerRT.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake index f01cba900..d4f636857 100644 --- a/cmake/Modules/AddCompilerRT.cmake +++ b/cmake/Modules/AddCompilerRT.cmake @@ -465,7 +465,7 @@ endmacro(add_compiler_rt_script src name) # DEPS # CFLAGS ) macro(add_custom_libcxx name prefix) - if(NOT COMPILER_RT_HAS_LIBCXX_SOURCES) + if(NOT COMPILER_RT_LIBCXX_PATH) message(FATAL_ERROR "libcxx not found!") endif() -- cgit v1.2.3