[libcxx] r203639 - build: remove unnecessary modification of CMAKE_REQUIRED_DEFINITIONS

Saleem Abdulrasool compnerd at compnerd.org
Tue Mar 11 21:11:34 PDT 2014


Author: compnerd
Date: Tue Mar 11 23:11:34 2014
New Revision: 203639

URL: http://llvm.org/viewvc/llvm-project?rev=203639&view=rev
Log:
build: remove unnecessary modification of CMAKE_REQUIRED_DEFINITIONS

This is unnecessary now that the flag handling has been fixed.  The flags will
be added properly in the main CMakeLists.txt after the config-ix inclusion which
performs the required check.

Modified:
    libcxx/trunk/cmake/config-ix.cmake

Modified: libcxx/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/cmake/config-ix.cmake?rev=203639&r1=203638&r2=203639&view=diff
==============================================================================
--- libcxx/trunk/cmake/config-ix.cmake (original)
+++ libcxx/trunk/cmake/config-ix.cmake Tue Mar 11 23:11:34 2014
@@ -30,11 +30,3 @@ check_library_exists(m ccos "" LIBCXX_HA
 check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB)
 check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXX_HAS_GCC_S_LIB)
 
-# Check C++0x features
-if (LIBCXX_ENABLE_CXX0X)
-  if (LIBCXX_HAS_STDCXX0X_FLAG)
-    set(CMAKE_REQUIRED_DEFINITIONS -std=c++0x)
-  endif()
-else()
-  set(LIBCXX_HAS_STDCXX0X_FLAG FALSE)
-endif()





More information about the cfe-commits mailing list