kissfft library is implemented only in C

By default, CMake assumes that the project is using both C and C++. By
explicitly passing 'C' as argument of the project() macro, we tell
CMake that only C is used, which prevents CMake from checking if a C++
compiler exists.
Enable CXX for tests only for testcpp.cc.
This commit is contained in:
Bernd Kuhls 2023-09-24 12:36:10 +02:00
parent 8f47a67f59
commit 6cdc9b533a
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ set(MAKEFILE_EXTRACTED_VERSION "${KFVER_MAJOR}.${KFVER_MINOR}.${KFVER_PATCH}")
#
cmake_minimum_required(VERSION 3.6)
project(kissfft VERSION "${MAKEFILE_EXTRACTED_VERSION}")
project(kissfft VERSION "${MAKEFILE_EXTRACTED_VERSION}" LANGUAGES C)
#
# CMake configuration options

View File

@ -8,6 +8,8 @@ endfunction()
set(KISSFFT_TEST_NUMFFTS 10000)
enable_language(CXX)
#
# Add tools-independent fastfilt_* (../tools/fft_*) executable without adding a test
#