From afe3f5a0c06b71a4d7df0e55277583c16693ce51 Mon Sep 17 00:00:00 2001 From: TB Schardl Date: Sun, 17 Dec 2017 03:28:09 +0000 Subject: [PATCH] [CMake] Fix to use available rtlib. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7971ef9..d0c56d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,9 +323,9 @@ else() -Wl,-z,relro ) endif() - if(SUPPORTS_COMPILER_RT) + if(CXX_SUPPORTS_COMPILER_RT) list(APPEND cilk_link_flags --rtlib=compiler-rt) - elseif(SUPPORTS_LIBGCC) + elseif(CXX_SUPPORTS_LIBGCC) list(APPEND cilk_link_flags --rtlib=libgcc) endif() endif()