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 jarro2783
parent 3c73d91c0b
commit c19e267790

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