Closed ryouze closed 4 months ago
Thanks!
@ryouze Just curious, why was the minimum required CMake version bumped to 3.24? I didn’t have it available and 3.22 seemed to work fine for me. Do you think it could be lowered?
@ryouze Just curious, why was the minimum required CMake version bumped to 3.24? I didn’t have it available and 3.22 seemed to work fine for me. Do you think it could be lowered?
To be honest, I didn’t put much thought into the version number. I chose 3.24 simply because that’s the version @ArthurSonzogni used in their project, json-tui. The version provided by my package manager (brew) is 3.30, so I didn’t run into any availability issues.
Upon further investigation, I realized that json-tui
relies on the FIND_PACKAGE_ARGS NAMES <PACKAGE>
syntax, which was introduced in CMake 3.24. However, since this template doesn’t actually use FIND_PACKAGE_ARGS
, version 3.24 isn’t required. If version 3.22 works as expected, please submit a PR to lower it.
I have made a couple of tweaks, mostly inspired by your json-tui project:
FetchContent
withGIT_PROGRESS
.GIT_SHALLOW
) and excluded it from the build unless explicitly requested (EXCLUDE_FROM_ALL
).GetProperties
andPopulate
withMakeAvailable
.main.cpp
.void
andstd::endl
frommain.cpp
.After adding an install target, the program correctly runs from
/usr/local/bin
on macOS.