Skip to content

Commit

Permalink
remove build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sailfish009 committed Mar 27, 2020
1 parent d827c92 commit 448338d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
set(CMAKE_CXX_FLAGS "-fcoroutines-ts --stdlib=libc++ -Xclang -fconcepts-ts -pthread")
set(CMAKE_CXX_FLAGS "-fcoroutines-ts --stdlib=libc++ -Xclang ")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi -pthread")
SET(PLATFORM_SPECIFIC_LIBS "-lpthread")

# find_package(system)
Expand All @@ -15,7 +15,7 @@ include_directories(../include)
link_directories(../build/)

# add_library(project libasio.a)
add_executable(echo_server echo_server.cpp)
target_link_libraries(echo_server libasio.a)
add_executable(chat_server chat_server.cpp)
target_link_libraries(chat_server libasio.a)


21 changes: 21 additions & 0 deletions examples/backup_CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.9)
project(chat_server)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
set(CMAKE_CXX_FLAGS "-fcoroutines-ts --stdlib=libc++ -Xclang -fconcepts-ts -pthread")
SET(PLATFORM_SPECIFIC_LIBS "-lpthread")

# find_package(system)

include_directories(../include)
link_directories(../build/)

# add_library(project libasio.a)
add_executable(echo_server echo_server.cpp)
target_link_libraries(echo_server libasio.a)


2 changes: 1 addition & 1 deletion examples/build/_clear.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake compile_commands.json echo_server Makefile
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake compile_commands.json chat_server Makefile

0 comments on commit 448338d

Please sign in to comment.