-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Allow using new C++ standards when building (#426)
* Require C++11 as minimal standard Signed-off-by: Uilian Ries <[email protected]> * Link to thread when needed Signed-off-by: Uilian Ries <[email protected]> * public thread target Signed-off-by: Uilian Ries <[email protected]> * Fix typo with target_compile_features --------- Signed-off-by: Uilian Ries <[email protected]> Co-authored-by: Joan Marcè i Igual <[email protected]>
- Loading branch information
1 parent
c6be96b
commit 373a01c
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) | ||
find_package(Threads REQUIRED) | ||
include(${CMAKE_CURRENT_SOURCE_DIR}/../../CMakeLists.txt) | ||
add_executable(sio_console_demo main.cpp) | ||
set_property(TARGET sio_console_demo PROPERTY CXX_STANDARD 11) | ||
set_property(TARGET sio_console_demo PROPERTY CXX_STANDARD_REQUIRED ON) | ||
target_link_libraries(sio_console_demo sioclient) | ||
target_link_libraries(sio_console_demo pthread ) | ||
target_link_libraries(sio_console_demo Threads::Threads) | ||
target_compile_features(sio_console_demo PRIVATE cxx_std_11) | ||
message(STATUS ${Boost_INCLUDE_DIRS} ) | ||
#target_include_directories(sio_console_demo PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../src" ${Boost_INCLUDE_DIRS} ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters