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.
This commit is contained in:
Ave Milia 2019-07-27 07:12:28 +02:00
parent 3c73d91c0b
commit 708f4798e0
No known key found for this signature in database
GPG Key ID: 9E47570C6C7BC45F

View File

@ -30,7 +30,7 @@ endforeach()
set(VERSION ${CXXOPTS__VERSION_MAJOR}.${CXXOPTS__VERSION_MINOR}.${CXXOPTS__VERSION_PATCH}) set(VERSION ${CXXOPTS__VERSION_MAJOR}.${CXXOPTS__VERSION_MINOR}.${CXXOPTS__VERSION_PATCH})
message(STATUS "cxxopts version ${VERSION}") message(STATUS "cxxopts version ${VERSION}")
project(cxxopts VERSION "${VERSION}") project(cxxopts VERSION "${VERSION}" LANGUAGES CXX)
enable_testing() enable_testing()