summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2016-11-26 21:55:33 +0000
committerGitHub <noreply@github.com>2016-11-26 21:55:33 +0000
commit20858a49e02dd45c649c7fec2073fbe1548bc1e0 (patch)
treec5fcc3d289d3fd92c29c998ae9c173ec2251395e
parentac6834e979a95bc4fefba2083290bcd77f6c3fa2 (diff)
downloadgflags-20858a49e02dd45c649c7fec2073fbe1548bc1e0.tar.gz
gflags-20858a49e02dd45c649c7fec2073fbe1548bc1e0.tar.bz2
gflags-20858a49e02dd45c649c7fec2073fbe1548bc1e0.zip
fix: Enable language C for older CMake versions when needed (#196)
* fix: Enable language C for older CMake versions when needed * fix: Don’t care about buggy Android toolchain
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db965cf..40d8d77 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,12 +91,12 @@ set (PACKAGE_DESCRIPTION "A commandline flags library that allows for distribute
set (PACKAGE_URL "http://gflags.github.io/gflags")
project (${PACKAGE_NAME} CXX)
-if (CMAKE_VERSION VERSION_LESS 100)
+if (CMAKE_VERSION VERSION_LESS 3.4)
# C language still needed because the following required CMake modules
# (or their dependencies, respectively) are not correctly handling
- # the case where only CXX is enabled.
- # - CheckTypeSize.cmake (fixed in CMake 3.1, cf. http://www.cmake.org/Bug/view.php?id=14056)
- # - FindThreads.cmake (--> CheckIncludeFiles.cmake <--)
+ # the case where only CXX is enabled
+ # - CheckTypeSize.cmake (fixed in CMake 3.1, cf. https://cmake.org/Bug/view.php?id=14056)
+ # - FindThreads.cmake (fixed in CMake 3.4, cf. https://cmake.org/Bug/view.php?id=14905)
enable_language (C)
endif ()