summaryrefslogtreecommitdiff
path: root/cmake/Modules/CompilerRTCompile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/CompilerRTCompile.cmake')
-rw-r--r--cmake/Modules/CompilerRTCompile.cmake10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmake/Modules/CompilerRTCompile.cmake b/cmake/Modules/CompilerRTCompile.cmake
index 4c6568167..d1dfb74bb 100644
--- a/cmake/Modules/CompilerRTCompile.cmake
+++ b/cmake/Modules/CompilerRTCompile.cmake
@@ -67,8 +67,8 @@ function(clang_compile object_file source)
if(NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND SOURCE_DEPS clang compiler-rt-headers)
endif()
- if (TARGET CompilerRTUnitTestCheckCxx)
- list(APPEND SOURCE_DEPS CompilerRTUnitTestCheckCxx)
+ if (TARGET CheckClangHeaders)
+ list(APPEND SOURCE_DEPS CheckClangHeaders)
endif()
string(REGEX MATCH "[.](cc|cpp)$" is_cxx ${source_rpath})
string(REGEX MATCH "[.](m|mm)$" is_objc ${source_rpath})
@@ -132,12 +132,10 @@ macro(clang_compiler_add_cxx_check)
" false"
"fi"
)
- add_custom_target(CompilerRTUnitTestCheckCxx
+ add_custom_target(CheckClangHeaders
COMMAND bash -c "${CMD}"
COMMENT "Checking that just-built clang can find C++ headers..."
VERBATIM)
- if (TARGET clang)
- ADD_DEPENDENCIES(CompilerRTUnitTestCheckCxx clang)
- endif()
+ ADD_DEPENDENCIES(CheckClangHeaders clang)
endif()
endmacro()