From 55f40d8b5852a05d4b16ad81ece1aa2978f764fb Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 28 May 2013 09:51:49 +0000 Subject: [PATCH] Force finding of the shared lib version of the C++ runtime lib. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 349074c..87b4594 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,11 +181,11 @@ set(FORCE_LIBOBJCXX false CACHE BOOL if (ENABLE_OBJCXX) # Try to find libcxxrt.so. We can link to this to provide the C++ ABI # layer, if it exists. - find_library(CXX_RUNTIME cxxrt) + find_library(CXX_RUNTIME NAMES libcxxrt.so) # If it doesn't, then look for GNU libsupc++.so instead (either works, # they're ABI compatible). if (NOT CXX_RUNTIME) - find_library(CXX_RUNTIME supc++) + find_library(CXX_RUNTIME NAMES libsupc++.so) endif (NOT CXX_RUNTIME) # If we have a C++ ABI library, then we can produce a single libobjc that