Signed-off-by: Kefu Chai <kchai@redhat.com>
set(C_STANDARD_REQUIRED ON)
endif()
-if(CXX_STDLIB STREQUAL "libc++")
- include(CheckCXXSourceCompiles)
- CHECK_CXX_SOURCE_COMPILES("
+include(CheckCXXSourceCompiles)
+CHECK_CXX_SOURCE_COMPILES("
#include <map>
using Map = std::map<int, int>;
int main() {
m.merge(Map{});
}
" HAVE_STDLIB_MAP_SPLICING)
-endif()
if(CMAKE_COMPILER_IS_GNUCXX AND
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)