[scripts-audit] nmake buildsystem#20987
Conversation
hoping not to make too many changes, just minor simplifications
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2169ab765b49cfc5cd7eddfc8ff3e579326776f8 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/baseline.json b/versions/baseline.json
index 08c5a89..a77d586 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -2338,7 +2338,7 @@
},
"gdal": {
"baseline": "3.3.2",
- "port-version": 1
+ "port-version": 2
},
"gdcm": {
"baseline": "3.0.7",
diff --git a/versions/g-/gdal.json b/versions/g-/gdal.json
index af74f90..f16bf4c 100644
--- a/versions/g-/gdal.json
+++ b/versions/g-/gdal.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "70e38b6c708d5daa8299f6f1cc88162d5af913f2",
+ "version-semver": "3.3.2",
+ "port-version": 2
+ },
{
"git-tree": "6e90412cd51170a5ea63a0067005bb3afc3c6c36",
"version-semver": "3.3.2",
dg0yt
left a comment
There was a problem hiding this comment.
Wouldn't it make sense to also set ENV{LIB}? Finding libs matching release/debug is needed in most ports.
|
FTR I'm about to touch most nmake builds near port gdal, to use pkg-config for dependencies. If you need improvements in argument usage, document what is needed. Or provide a new vcpkg-nmake port to be adopted during port updates. |
|
@dg0yt it may make sense, but this is not a behavior changing PR in order to make it easier to merge. |
|
I keep looking at the source to verify what variables it passes to nmake via command line or environment. Shouldn't this be in the documentation? (How could I know that there is a INSTALLDIR variable?) |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| if(NOT _bn_LOGFILE_ROOT) | ||
| set(_bn_LOGFILE_ROOT "build") | ||
| if(arg_NO_DEBUG) | ||
| message(WARNING "NO_DEBUG argument to ${CMAKE_CURRENT_FUNCTION} is deprecated") |
There was a problem hiding this comment.
| message(WARNING "NO_DEBUG argument to ${CMAKE_CURRENT_FUNCTION} is deprecated") | |
| message(WARNING "The NO_DEBUG argument to ${CMAKE_CURRENT_FUNCTION} is deprecated") | |
| else() | ||
| set(MAKEFILE_NAME ${_bn_PROJECT_NAME}) | ||
| if(arg_ADD_BIN_TO_PATH) | ||
| message(WARNING "ADD_BIN_TO_PATH argument to ${CMAKE_CURRENT_FUNCTION} is deprecated - it never did anything") |
There was a problem hiding this comment.
| message(WARNING "ADD_BIN_TO_PATH argument to ${CMAKE_CURRENT_FUNCTION} is deprecated - it never did anything") | |
| message(WARNING "ADD_BIN_TO_PATH argument to ${CMAKE_CURRENT_FUNCTION} is deprecated - it had no effect") | |
| endif() | ||
|
|
||
| if(NOT VCPKG_HOST_IS_WINDOWS) | ||
| message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} only support windows.") |
There was a problem hiding this comment.
| message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} only support windows.") | |
| message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} only supports windows") | |
| else() | ||
| set(MAKEFILE_NAME ${_bn_PROJECT_NAME}) | ||
| if(arg_ADD_BIN_TO_PATH) | ||
| message(WARNING "ADD_BIN_TO_PATH argument to ${CMAKE_CURRENT_FUNCTION} is deprecated - it never did anything") |
These are all simplifications and should not introduce changes in behavior, except for minor or obviously wrong cases (not restoring ENV{CL} after a debug build, for example)