-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake version needs incrementing #5
Comments
CMakeLists.txt has been updated. |
This should be replaced to |
Thanks for the comment, but I don't think I know enough about CMake to attempt this without some more detailed clues. I do test CMake under Linux (which is all I have) but I'm not experienced in setting up CMake configurations - that's all been done by others. |
I'll try to improve it in PRs. |
Thank you. |
Currently we have 2 ways:
Which way do you prefer to choose? |
As I know almost nothing about CMake and absolutely nothing about find_package(), I don't really know. I test CMake on Linux by running "cmake" or "ccmake" to configure, then "make" to build. Everything ought to be configurable that way, so perhaps I'm going for option 2. I do recall that one of the more recent changes was to allow BOTH static and dynamic libraries to be built together. That is , it isn't "dynamic or static", it's "dynamic AND/OR static". |
The difference between the two is:
|
We'd better go for #1 then, because an earlier contributor specifically wanted to create both static and dynamic libraries at the same time, as is possible with the Autotools build method. This is change #2 for release 10.38 as listed in ChangeLog. There are some notes there (in ChangeLog) about name clashes in MSVC. |
This is a consequence of old Bugzilla #2785, by Jan-Willem Blokland . The patch in that issue was applied, but the minimum CMake version in CMakeLists.txt needs updating (it is very old). These are the final comments:
JWB: Interesting that you see this Deprecation Warning. It turns out that CMake deprecated version older than 2.8.12:
Compatibility with versions of CMake older than 2.8.12 is now deprecated and will be removed from a future version. Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue a deprecation diagnostic.
For more details see https://cmake.org/cmake/help/v3.20/release/3.19.html. We could decide to increase the minimum required version to something more recent, like version 3.0 to avoid this warning. If we do so, I am willing to make another update to the CMake build configuration.
PH: Yes, I think we can usefully up the number to 3.0.0, which was released in 2014, so it's unlikely to catch anybody. I will do it sometime.
The text was updated successfully, but these errors were encountered: