Skip to content

bail out on invalid MATCHCOMPILER (make) and USE_MATCHCOMPILER (CMake) values / Makefile: removed deprecated SRCDIR#6021

Merged
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
firewave:mc-bail
Feb 25, 2024
Merged

bail out on invalid MATCHCOMPILER (make) and USE_MATCHCOMPILER (CMake) values / Makefile: removed deprecated SRCDIR#6021
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
firewave:mc-bail

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

I accidentally specified MATCHCOMPILER=1 and only later realized that the matchcompiler was not being used as it requires yes instead. So bail out on this.

@orbitcowboy orbitcowboy merged commit 2535d2d into cppcheck-opensource:main Feb 25, 2024
@firewave firewave deleted the mc-bail branch February 27, 2024 11:37
Comment thread cmake/options.cmake

set(USE_MATCHCOMPILER "Auto" CACHE STRING "Usage of match compiler")
set_property(CACHE USE_MATCHCOMPILER PROPERTY STRINGS Auto Off On Verify)
set(_MATCHCOMPILER_STRINGS Auto Off On Verify)
Copy link
Copy Markdown
Contributor

@c72578 c72578 Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to readme.md this should be "ON" in capital letters. Same for "OFF".
Otherwise:
CMake Error at cmake/options.cmake:28 (message):
Invalid USE_MATCHCOMPILER value 'ON'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change was faulty - see also #6321.

I will post a PR fixing this tomorrow and mark it for backport.

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.

3 participants