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

Set cmake_policy CMP0128 to NEW #1351

Closed
wants to merge 1 commit into from
Closed

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Jul 19, 2023

Work around a problem in CMake 3.22.1 in setting -std=c++17. Instead -std=c++11 is in effect for targets in test/*, but those targets require C++17.

Fixes compiling SPIRV-Tools test targets in with certain Clang and CMake combinations. Fixes a problem when trying to refresh shader-tools in the Android NDK.

Fixes: #1350

Work around a problem in CMake 3.22.1 in setting -std=c++17.
Instead -std=c++11 is in effect for targets in test/*, but those targets require C++17.

Fixes compiling SPIRV-Tools test targets in with certain Clang
and CMake combinations.  Fixes a problem when trying to refresh
shader-tools in the Android NDK.

Fixes: google#1350
@dneto0 dneto0 enabled auto-merge (squash) July 19, 2023 20:30
@dneto0 dneto0 closed this Jul 19, 2023
auto-merge was automatically disabled July 19, 2023 20:42

Pull request was closed

@dneto0
Copy link
Collaborator Author

dneto0 commented Jul 19, 2023

This didn't work locally for me.
cmake_policy is apparently scoped to the current project. So this can only be worked around in SPIRV-Tools, where the problem is triggered.

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.

work around bug in CMake 3.22.1 bug in CMP0128 policy, for compiling SPIRV-Tools tests
1 participant