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

Correct set_source_files_properties usage #189

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

mlmitch
Copy link

@mlmitch mlmitch commented Oct 31, 2023

The use of CMAKE_BINARY_DIR and CMAKE_CURRENT_BINARY_DIR when specifying files to set_source_files_properties caused problems when this project is used from another CMake project.

More specifically, these variables aren't set to the expected path, and the properties are attempted to be set for non-existant files.

This was benign before vectorscan 5.4.8 as the only properties set were warning suppression flags.

Starting with 5.4.9, -funsigned-char was applied to Ragel outputs using this method. The result is projects depending on Vectorscan through Cmake do not have this compile flag properly applied.

The use of `CMAKE_BINARY_DIR` and `CMAKE_CURRENT_BINARY_DIR` when
specifying files to set_source_files_properties caused problems
when this project is used from another CMake project.

More specifically, these variables aren't set to the expected path,
and the properties are attempted to be set for non-existant files.

This was benign before vectorscan 5.4.8 as the only properties
set were warning suppression flags.

Starting with 5.4.9, `-funsigned-char` was applied to Ragel outputs
using this method. The result is projects depending on Vectorscan
through Cmake do not have this compile flag properly applied.
@markos
Copy link

markos commented Oct 31, 2023

Ah that was a very tricky bug to hunt down, amazing, thank you for your PR! I hope this really fixes the issue for good!

@markos markos self-assigned this Oct 31, 2023
Copy link

@markos markos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Approved.

@markos markos added the bug Something isn't working label Oct 31, 2023
@markos markos added this to the 5.4.11 milestone Oct 31, 2023
@mlmitch
Copy link
Author

mlmitch commented Oct 31, 2023

Definitely tricky! Sorry it was a bit of a goose chase.

@markos markos merged commit 9d0599a into VectorCamp:develop Nov 1, 2023
@markos markos mentioned this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants