Skip to content

Remove mismatched else condition in CMakeLists.txt#415

Merged
SRombauts merged 1 commit intoSRombauts:masterfrom
Timmmm:patch-1
Apr 11, 2023
Merged

Remove mismatched else condition in CMakeLists.txt#415
SRombauts merged 1 commit intoSRombauts:masterfrom
Timmmm:patch-1

Conversation

@Timmmm
Copy link
Copy Markdown
Contributor

@Timmmm Timmmm commented Apr 11, 2023

From the CMake docs:

Per legacy, the else() and endif() commands admit an optional argument. If used, it must be a verbatim repeat of the argument of the opening if command.

Doesn't really matter but it could be confusing to people who aren't very familiar with CMake's intricacies. Also it triggers an annoying lint warning in my IDE.

From the CMake docs:

> Per legacy, the else() and endif() commands admit an optional <condition> argument. If used, it must be a verbatim repeat of the argument of the opening if command.
@SRombauts SRombauts merged commit 39070b2 into SRombauts:master Apr 11, 2023
@SRombauts
Copy link
Copy Markdown
Owner

Thanks!

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