bugfix: Set CXX compiler if no BUILD_TESTING
Fixes ... -- Configuring done CMake Error in CMakeLists.txt: No known features for CXX compiler "" version .
This commit is contained in:
parent
edc0d97de0
commit
07a18d2d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.22)
|
cmake_minimum_required(VERSION 3.22)
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING OR NOT DEFINED BUILD_TESTING)
|
||||||
# The tests are C++
|
# The tests are C++
|
||||||
set(languages C CXX)
|
set(languages C CXX)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue