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

Separate C++ that we build with from what we demand downstream #1454

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jan 19, 2022

We were passing along, in the exported cmake config files, a demand
for downstream clients to use a C++ standard version equal to that
which we used to build OSL itself. But that's not necessary. We may
choose to build with C++17 (for example), but all of our public APIs
are safe to use for C++14.

Split the build-time options to CMAKE_CXX_STANDARD for the standard we
build this project with, and DOWNSTREAM_CXX_STANDARD for the standard
we are declaring is the minimum to use the library.

Signed-off-by: Larry Gritz [email protected]

We were passing along, in the exported cmake config files, a demand
for downstream clients to use a C++ standard version equal to that
which we used to build OSL itself. But that's not necessary. We may
choose to build with C++17 (for example), but all of our public APIs
are safe to use for C++14.

Split the build-time options to CMAKE_CXX_STANDARD for the standard we
build this project with, and DOWNSTREAM_CXX_STANDARD for the standard
we are declaring is the minimum to *use* the library.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz changed the title Separate C++ that we build with from that we demand downstream Separate C++ that we build with from what we demand downstream Jan 19, 2022
@lgritz lgritz merged commit 0e4a7e6 into AcademySoftwareFoundation:main Jan 20, 2022
@lgritz lgritz deleted the lg-cxxdownstream branch January 21, 2022 01:27
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 this pull request may close these issues.

2 participants