Commit c19e267790ecc62858fb9e1a26a424f7a1f5bad1

Authored by avemilia
Committed by jarro2783
1 parent 3c73d91c

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.
Showing 1 changed file with 1 additions and 1 deletions
CMakeLists.txt
... ... @@ -30,7 +30,7 @@ endforeach()
30 30 set(VERSION ${CXXOPTS__VERSION_MAJOR}.${CXXOPTS__VERSION_MINOR}.${CXXOPTS__VERSION_PATCH})
31 31 message(STATUS "cxxopts version ${VERSION}")
32 32  
33   -project(cxxopts VERSION "${VERSION}")
  33 +project(cxxopts VERSION "${VERSION}" LANGUAGES CXX)
34 34  
35 35 enable_testing()
36 36  
... ...