mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-15 07:28:16 +08:00
Update CMake usage to enable C++17 (#156)
The target_compile_features command allows setting PUBLIC compile features for the library, making it implicit for the applications linking it. This reduces the CMake boilerplate required to set up a dependent project (eg. ftxui-starter).
This commit is contained in:

committed by
GitHub

parent
a56bb50807
commit
5ee4ec40de
@@ -83,9 +83,6 @@ target_link_libraries(ftxui-starter
|
||||
PRIVATE ftxui::component # Not needed for this example.
|
||||
)
|
||||
|
||||
# C++17 is used. We requires fold expressions at least.
|
||||
set_target_properties(ftxui-starter PROPERTIES CXX_STANDARD 17)
|
||||
|
||||
~~~
|
||||
|
||||
Build
|
||||
|
Reference in New Issue
Block a user