Skip to content

Commit

Permalink
seems solve the problem why websocketpp work right with new version b…
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqin committed Apr 16, 2020
1 parent d83b1dc commit 7e69593
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)

# out the binary to bin folder of source path
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
# set env of PKG_CONFIG_PATH of linux path of gtest
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib64/pkgconfig")
# set env of PKG_CONFIG_PATH of mac path of gtest
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/Cellar/[email protected]/1.1.1f/lib/pkgconfig")

include(FindPkgConfig)

set(BOOST_INCLUDEDIR /usr/include/boost169)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ target_link_libraries(ChatServer
PUBLIC
Boost::thread
OpenSSL::SSL
penSSL::Crypto
OpenSSL::Crypto
)

target_link_libraries(ChatClient
Expand Down
2 changes: 1 addition & 1 deletion src/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_library(${PROJECT_NAME}-server OBJECT
)

target_include_directories(${PROJECT_NAME}-server PUBLIC
${OPENSSL_INCLUDE_DIR}
#${OPENSSL_INCLUDE_DIR} #for boost 1.72 need this line, for 1.69 not needed.
${Boost_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/src/3rdparty
)

0 comments on commit 7e69593

Please sign in to comment.