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

[REGRESSION] UnboundLocalError in cmake configure_package_config_file() #7301

Closed
p01arst0rm opened this issue Jun 11, 2020 · 1 comment · Fixed by #7302
Closed

[REGRESSION] UnboundLocalError in cmake configure_package_config_file() #7301

p01arst0rm opened this issue Jun 11, 2020 · 1 comment · Fixed by #7302
Labels
bug dependency:cmake Issues related to `dependency` with the `cmake` method
Milestone

Comments

@p01arst0rm
Copy link
Contributor

Describe the bug
when specifying install_dir : join_paths(libdir, 'cmake') meson
panics in function configure_package_config_file() ;- line
257 of mesonbuild\modules\cmake.py

To Reproduce

cmake_conf = configuration_data()
cmake_conf.set_quoted('foo', 'bar')

cmake.configure_package_config_file(
    name : 'foolib',
    input : 'foolib.cmake.in',
    install_dir : join_paths(libdir, 'cmake'),
    configuration : cmake_conf)

Expected behavior
generate a configured cmake package config file

system parameters

  • native build
  • Windows 10 (Current latest patch KB4538461)
  • python version 3.7.1
  • meson version 0.54.1
  • ninja Not Applicable.
@p01arst0rm
Copy link
Contributor Author

cc @dcbaker :)

@dcbaker dcbaker added dependency:cmake Issues related to `dependency` with the `cmake` method bug labels Jun 11, 2020
dcbaker added a commit to dcbaker/meson that referenced this issue Jun 11, 2020
dcbaker added a commit to dcbaker/meson that referenced this issue Jun 11, 2020
@dcbaker dcbaker added this to the 0.54.3 milestone Jun 11, 2020
nirbheek pushed a commit that referenced this issue Jun 12, 2020
nirbheek pushed a commit that referenced this issue Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependency:cmake Issues related to `dependency` with the `cmake` method
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants