You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building opengv as part of my project and would like to set a different (newer) C++ standard from outside. However, currently passing CMAKE_CXX_STANDARD does nothing and is overwritten. As a workaround I modify the CMakeLists.txt, but ideally I would like to pull in the unmodified upstream version.
Is there currently a way to pass a custom C++ standard version from "outside"?
What would be a good way to implement this? Instead of putting a fixed value of 11, we could check if CMAKE_CXX_STANDARD is set. If yes, we use that, if not, we default to 11. Would that be an acceptable change, or does that have possible downsides?
The text was updated successfully, but these errors were encountered:
In the cmake configuration the
CXX_STANDARD
property of the library is set to a fixed value of11
.opengv/CMakeLists.txt
Line 184 in 306a54e
I'm building opengv as part of my project and would like to set a different (newer) C++ standard from outside. However, currently passing
CMAKE_CXX_STANDARD
does nothing and is overwritten. As a workaround I modify theCMakeLists.txt
, but ideally I would like to pull in the unmodified upstream version.Is there currently a way to pass a custom C++ standard version from "outside"?
What would be a good way to implement this? Instead of putting a fixed value of
11
, we could check ifCMAKE_CXX_STANDARD
is set. If yes, we use that, if not, we default to11
. Would that be an acceptable change, or does that have possible downsides?The text was updated successfully, but these errors were encountered: