From ee0903ea7890d92973996b970bdabd6ad5b3a660 Mon Sep 17 00:00:00 2001 From: Rogier Date: Tue, 28 Jun 2016 11:00:17 +0200 Subject: [PATCH] Move empty.cpp to the cmake directory It is only needed for a compilation test by cmake. --- CMakeLists.txt | 4 ++-- empty.cpp => cmake/empty.cpp | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename empty.cpp => cmake/empty.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64982a5..7a1872e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ endif(VERSION_EXIT) # try_compile does not remove the temporary build directory, so put it in CMakeFiles... # Also: use absolute paths; cmake chokes on relative paths :-( -try_compile(CXX_C0X_SUPPORTED "${CMAKE_HOME_DIRECTORY}/CMakeFiles/CMakeTmp/c0x-test" "${CMAKE_HOME_DIRECTORY}/empty.cpp" CMAKE_FLAGS "-std=c++0x") +try_compile(CXX_C0X_SUPPORTED "${CMAKE_HOME_DIRECTORY}/CMakeFiles/CMakeTmp/c0x-test" "${CMAKE_HOME_DIRECTORY}/cmake/empty.cpp" CMAKE_FLAGS "-std=c++0x") if(CXX_C0X_SUPPORTED) # Yes, I *know* c++0x is *not* an official C++ standard... message(STATUS "Compiler: C++ standard version 'c++0x' is supported") @@ -56,7 +56,7 @@ else(CXX_C0X_SUPPORTED) message(STATUS "Compiler: C++ standard version c++0x is not supported") message(FATAL_ERROR "Your compiler is not modern enough to compile this code\nPlease upgrade your compiler to one supporting at least c++0x.\n(or submit a bug report)") endif(CXX_C0X_SUPPORTED) -try_compile(CXX_C11_SUPPORTED "${CMAKE_HOME_DIRECTORY}/CMakeFiles/CMakeTmp/c11-test" "${CMAKE_HOME_DIRECTORY}/empty.cpp" CMAKE_FLAGS "-std=c++11") +try_compile(CXX_C11_SUPPORTED "${CMAKE_HOME_DIRECTORY}/CMakeFiles/CMakeTmp/c11-test" "${CMAKE_HOME_DIRECTORY}/cmake/empty.cpp" CMAKE_FLAGS "-std=c++11") if(CXX_C11_SUPPORTED) message(STATUS "Compiler: C++ standard version 'c++11' is supported") else(CXX_C11_SUPPORTED) diff --git a/empty.cpp b/cmake/empty.cpp similarity index 100% rename from empty.cpp rename to cmake/empty.cpp