spnda / fastgltf

A modern C++17 glTF 2.0 library focused on speed, correctness, and usability

Home Page:https://fastgltf.readthedocs.io/v0.8.x/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change c++17 standard visibility to private

przemkovv opened this issue · comments

Can the visibility of the used C++ standard version be changed from PUBLIC to PRIVATE?

target_compile_features(fastgltf PUBLIC cxx_std_17)

When it is public, and the project is consumed by another cmake project, the c++17 flag unnecessarily propagates and generates additional warnings if the main project uses e.g., c++20.

like:

 cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++latest'