You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake Warning (dev) at /vcpkg/installed/x64-linux/share/cmake/gz-cmake3/cmake3/GzUtils.cmake:313 (message):
The build script has specified some unrecognized arguments for
gz_find_package(~):
tinyxml2-expected
Either the script has a typo, or it is using an unexpected version of
gz-cmake. The version of gz-cmake currently being used is 3.4.1
Call Stack (most recent call first):
/vcpkg/installed/x64-linux/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:178 (_gz_cmake_parse_arguments)
CMakeLists.txt:63 (gz_find_package)
tinyxml2-expected is parsed as a separate arg to gz_find_package.
Suggestion
EXTRA_ARGS should be moved to the multi-option args in these spots:
Thanks Kai for issue! Would you mind sending a PR to fix it against the branch you are interested into? I'll take care of reviewing and back/forward porting.
Environment
Description
EXTRA_ARGS
forgz_find_package
should be pass forward tofind_package
.gz-cmake/cmake/GzFindPackage.cmake
Line 112 in 200de1b
gz-cmake/cmake/GzFindPackage.cmake
Lines 209 to 211 in 200de1b
However, only the first argument is actually passed on. Any other argument is interpreted separately, so the desired effect cannot be achieved.
Steps to reproduce
This should pass additional
NAMES tinyxml2-expected
tofind_package
.gz_find_package(TINYXML2 PRETTY tinyxml2 EXTRA_ARGS NAMES tinyxml2-expected REQUIRED_BY graphics PRIVATE_FOR graphics)
Output
tinyxml2-expected
is parsed as a separate arg togz_find_package
.Suggestion
EXTRA_ARGS
should be moved to the multi-option args in these spots:gz-cmake/cmake/GzFindPackage.cmake
Lines 158 to 159 in 200de1b
gz-cmake/cmake/GzFindPackage.cmake
Lines 173 to 174 in 200de1b
The text was updated successfully, but these errors were encountered: