Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cxx-standard should not be in CMAKE_CXX_FLAGS #6384

Closed
misho104 opened this issue Sep 18, 2020 · 0 comments · Fixed by #6466
Closed

cxx-standard should not be in CMAKE_CXX_FLAGS #6384

misho104 opened this issue Sep 18, 2020 · 0 comments · Fixed by #6466

Comments

@misho104
Copy link

Describe the bug

CMAKE_CXX_FLAGS, set by hand in ROOTUseFile.cmake, includes a specification on cxx standard, which should be specified rather by CMAKE_CXX_STANDARD variable.

In a projects using ROOT, the inclusion causes doubly-specified cxx-standard in their compile procedure, and the maintainer transferred me here; see the thread here:

iLCSoft/LCIO#109 (comment)

Expected behavior

--std= options should be set in CMAKE_CXX_STANDARD, rather than CMAKE_CXX_FLAGS.

To Reproduce

see iLCSoft/LCIO#109 (comment)

Setup

ROOT Docker images: docker pull rootproject/root:6.22.02-ubuntu20.04, ran on docker on WSL2.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
5 participants