CMake: search only for C++ compiler (#192)

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:
avemilia 2019-07-31 10:15:58 +02:00 committed by Jarryd Beck
parent c4bd30be57
commit 56432321b8

View File

@ -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()