Skip to content

kissfft library is implemented only in C#90

Open
bkuhls wants to merge 1 commit intomborgerding:masterfrom
bkuhls:no-cxx
Open

kissfft library is implemented only in C#90
bkuhls wants to merge 1 commit intomborgerding:masterfrom
bkuhls:no-cxx

Conversation

@bkuhls
Copy link

@bkuhls bkuhls commented Sep 24, 2023

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.

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.
@C0rn3j
Copy link
Collaborator

C0rn3j commented Dec 30, 2025

Am not well versed in build systems, but shouldn't the C++ enable be guarded?

cmake . -DCMAKE_CXX_COMPILER=FALSE -DBUILD_TESTING=OFF failed on it.

https://cmake.org/cmake/help/latest/variable/BUILD_TESTING.html

if(BUILD_TESTING)
    enable_language(CXX)
endif()

Or is that just not relevant/needed at all here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants