Skip to content

CMAKE_CXX_FLAGS are overwritten #316

@jacobmerson

Description

@jacobmerson

The CMAKE_CXX_FLAGS variable is overwritten by bob_begin_cxx_flags. I see that the variables SCOREC_CXX_FLAGS and SCOREC_EXTRA_CXX_FLAGS can be used instead.

However, this behavior is not "standard" and I had to go into the bob.cmake file to figure out how to change the flags.

I think it makes more sense to have the default behavior for CMAKE_CXX_FLAGS do what SCOREC_EXTRA_CXX_FLAGS currently does.

If we don't want to go that route, then there needs to be some sort of documentation on how to set the cxx flags and a comment in the CMakeLists.txt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions