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

CMAKE_CXX_FLAGS handling fails when empty string #3227

Closed
zaddach opened this issue Apr 6, 2024 · 0 comments · Fixed by #3228
Closed

CMAKE_CXX_FLAGS handling fails when empty string #3227

zaddach opened this issue Apr 6, 2024 · 0 comments · Fixed by #3228

Comments

@zaddach
Copy link
Contributor

zaddach commented Apr 6, 2024

When I pass an empty string (I was actually trying to pass /EHsc, which gets removed in the line before), cmake will trip here, telling me that STRING(REPLACE ... ) didn't get enough arguments:

STRING(REPLACE "/EHs" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})

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 a pull request may close this issue.

1 participant