From 708f4798e059a0382a48ff16c196cf22de792533 Mon Sep 17 00:00:00 2001 From: Ave Milia Date: Sat, 27 Jul 2019 07:12:28 +0200 Subject: [PATCH] CMake: search only for C++ compiler This speeds up the CMake configuration step by not searching for a C compiler. By default, CMake looks for C and C++ compilers, unless a set of compilation languages is specified. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 440490b..8d47687 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ endforeach() set(VERSION ${CXXOPTS__VERSION_MAJOR}.${CXXOPTS__VERSION_MINOR}.${CXXOPTS__VERSION_PATCH}) message(STATUS "cxxopts version ${VERSION}") -project(cxxopts VERSION "${VERSION}") +project(cxxopts VERSION "${VERSION}" LANGUAGES CXX) enable_testing()