mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-25 20:20:26 -04:00
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:
parent
8f47a67f59
commit
6cdc9b533a
@ -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
|
||||
|
@ -8,6 +8,8 @@ endfunction()
|
||||
|
||||
set(KISSFFT_TEST_NUMFFTS 10000)
|
||||
|
||||
enable_language(CXX)
|
||||
|
||||
#
|
||||
# Add tools-independent fastfilt_* (../tools/fft_*) executable without adding a test
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user