mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 13:48:33 -05:00
b325484928
Add C-language standard to target-wide C++ settings. Fixes: #21195
6 lines
133 B
CMake
6 lines
133 B
CMake
enable_language(C)
|
|
enable_language(CXX)
|
|
|
|
add_library(foo empty.c empty.cxx)
|
|
target_compile_features(foo PRIVATE c_std_11 cxx_std_17)
|