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
It seems that there is no need to add /std:${MSVC_LANGUAGE_VERSION} as a PUBLIC compile option for the target Folly::folly, it has to be PRIVATE option in terms of CMake's target_compile_options.
The text was updated successfully, but these errors were encountered:
There is a line in FollyCompilerMSVC.cmake that adds
/std:
compiler option for Folly::folly target:folly/CMake/FollyCompilerMSVC.cmake
Line 122 in 7f69f88
This line causes a problem with I'm trying to use Folly with VC++ via vcpkg. There is the output from the compiler:
The
/std:c++17
inherited from Folly::folly overrides/std:c++20
from my project and prevents compilation in C++20 mode.There is a demo project that show this case: https://github.com/eao197/folly_vcpkg_msvc_cpp20
It seems that there is no need to add
/std:${MSVC_LANGUAGE_VERSION}
as a PUBLIC compile option for the target Folly::folly, it has to be PRIVATE option in terms of CMake'starget_compile_options
.The text was updated successfully, but these errors were encountered: