diff options
author | Victor Zverovich <victor.zverovich@gmail.com> | 2019-04-13 06:56:34 -0700 |
---|---|---|
committer | Victor Zverovich <victor.zverovich@gmail.com> | 2019-04-13 11:37:52 -0700 |
commit | 8bc0adb9ba23368ac970908d971a853bc5765b09 (patch) | |
tree | 65475eda2b189d93994ce58914ca5013e2b99c06 /support | |
parent | 1763d0e7a295bdc800d16f1cefceb7d623e1d761 (diff) | |
download | fmtlib-8bc0adb9ba23368ac970908d971a853bc5765b09.tar.gz |
Get rid of obsolete cmake stuff
Diffstat (limited to 'support')
-rw-r--r-- | support/cmake/cxx14.cmake | 28 | ||||
-rw-r--r-- | support/cmake/run-cmake.bat | 11 |
2 files changed, 1 insertions, 38 deletions
diff --git a/support/cmake/cxx14.cmake b/support/cmake/cxx14.cmake index 1866cdcc..de8a0b42 100644 --- a/support/cmake/cxx14.cmake +++ b/support/cmake/cxx14.cmake @@ -50,6 +50,7 @@ set(CMAKE_REQUIRED_FLAGS ${CXX_STANDARD_FLAG}) # Check if variadic templates are working and not affected by GCC bug 39653: # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653 +# Can be removed once gcc 4.4 support is dropped. check_cxx_source_compiles(" template <class T, class ...Types> struct S { typedef typename S<Types...>::type type; }; @@ -58,33 +59,6 @@ if (NOT SUPPORTS_VARIADIC_TEMPLATES) set (SUPPORTS_VARIADIC_TEMPLATES OFF) endif () -# Check if initializer lists are supported. -check_cxx_source_compiles(" - #include <initializer_list> - int main() {}" SUPPORTS_INITIALIZER_LIST) -if (NOT SUPPORTS_INITIALIZER_LIST) - set (SUPPORTS_INITIALIZER_LIST OFF) -endif () - -# Check if enum bases are available -check_cxx_source_compiles(" - enum C : char {A}; - int main() {}" - SUPPORTS_ENUM_BASE) -if (NOT SUPPORTS_ENUM_BASE) - set (SUPPORTS_ENUM_BASE OFF) -endif () - -# Check if type traits are available -check_cxx_source_compiles(" - #include <type_traits> - class C { void operator=(const C&); }; - int main() { static_assert(!std::is_copy_assignable<C>::value, \"\"); }" - SUPPORTS_TYPE_TRAITS) -if (NOT SUPPORTS_TYPE_TRAITS) - set (SUPPORTS_TYPE_TRAITS OFF) -endif () - # Check if user-defined literals are available check_cxx_source_compiles(" void operator\"\" _udl(long double); diff --git a/support/cmake/run-cmake.bat b/support/cmake/run-cmake.bat deleted file mode 100644 index f18bb055..00000000 --- a/support/cmake/run-cmake.bat +++ /dev/null @@ -1,11 +0,0 @@ -@echo on -rem This scripts configures build environment and runs CMake. -rem Use it instead of running CMake directly when building with -rem the Microsoft SDK toolchain rather than Visual Studio. -rem It is used in the same way as cmake, for example: -rem -rem run-cmake -G "Visual Studio 10 Win64" . - -for /F "delims=" %%i IN ('cmake "-DPRINT_PATH=1" -P %~dp0/FindSetEnv.cmake') DO set setenv=%%i -if NOT "%setenv%" == "" call "%setenv%" -cmake %* |