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

Modernize cmake compile options #22

Open
taminob opened this issue Feb 26, 2025 · 0 comments
Open

Modernize cmake compile options #22

taminob opened this issue Feb 26, 2025 · 0 comments
Labels
cmake Related to cmake build system

Comments

@taminob
Copy link
Owner

taminob commented Feb 26, 2025

Currently, the compile options are set via CMAKE_CXX_FLAGS.

In modern CMake, this should be replaced by either providing compiler-specific presets or at least setting it only for the desired targets.
In order to avoid duplication, they could be stored in a variable which are then used via target_compile_options for each target.

@taminob taminob added the cmake Related to cmake build system label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Related to cmake build system
Projects
None yet
Development

No branches or pull requests

1 participant