Skip to content
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

Remove CMakeParseArguments.cmake and dependent modules. #513

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

mmuetzel
Copy link
Contributor

@mmuetzel mmuetzel commented Aug 4, 2024

cmake_parse_argument is implemented natively in CMake since version 3.5. Only previously, it was defined in a module.

ElmerFEM already requires CMake 3.10 or newer.

Remove that module and its dependencies because it is causing issues with VTK 9.1:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/vtkDetectLibraryType.cmake:23 (message):
  The `PATH` argument is required.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/FindGLEW.cmake:19 (vtk_detect_library_type)
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:256 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/vtk-config.cmake:150 (include)
  ElmerGUI/CMakeLists.txt:142 (FIND_PACKAGE)

Also, use default syntax to include the module FindPackageHandleStandardArgs now that there is no longer a conflict between the module that is installed with CMake and the (old) copy that was bundled with ElmerFEM.

`cmake_parse_argument` is implemented natively in CMake since version
3.5. Only previously, it was defined in a module.

ElmerFEM already requires CMake 3.10 or newer.

Remove that module and its dependencies because it is causing issues
with VTK 9.1:
```
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/vtkDetectLibraryType.cmake:23 (message):
  The `PATH` argument is required.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/FindGLEW.cmake:19 (vtk_detect_library_type)
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:256 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/vtk-9.1/vtk-config.cmake:150 (include)
  ElmerGUI/CMakeLists.txt:142 (FIND_PACKAGE)
```
@mmuetzel
Copy link
Contributor Author

mmuetzel commented Aug 4, 2024

It looks like this was reported previously by a different user on the VTK discourse forum:
https://discourse.vtk.org/t/issues-in-configuring-software-with-vtk-dependency-fails-in-vtk-cmake-files/11805

Use the default syntax to include the module
`FindPackageHandleStandardArgs` now that there is no longer a conflict
between the version of that module that is installed by CMake and the
previously existing (old) copy of that module.
@raback raback merged commit ebd157e into ElmerCSC:devel Aug 4, 2024
5 of 9 checks passed
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