Skip to content

Enforce Csound 7.0 minimum version in FindCSOUND - #46

Merged
vlazzarini merged 1 commit into
developfrom
enforce-csound-min-version
Oct 12, 2026
Merged

vlazzarini merged 1 commit into
developfrom
enforce-csound-min-version

Conversation

@vlazzarini

Copy link
Copy Markdown
Member

Summary: The 7.x codebase is being built against Csound 6.x installations because FindCSOUND.cmake never checked the installed Csound version.

Changes:

  • cmake/Modules/FindCSOUND.cmake: parse CS_VERSION/CS_SUBVER/CS_PATCHLEVEL from version.h into CSOUND_VERSION and pass it to find_package_handle_standard_args via VERSION_VAR, so version requirements are enforced.
  • CMakeLists.txt: request find_package(CSOUND 7.0) and fail with a clear message if the found version is < 7.0.

Verification: tested against a local Csound 6.18.1 install (CSOUND_FOUND=FALSE) and a 7.0.0 install (CSOUND_FOUND=TRUE).

@vlazzarini
vlazzarini merged commit 361ebf8 into develop Oct 12, 2026
6 checks passed
@vlazzarini
vlazzarini deleted the enforce-csound-min-version branch October 12, 2026 19:55
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.

1 participant