diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d44047..b35952a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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/openssl@1.1/1.1.1f/lib/pkgconfig") + include(FindPkgConfig) set(BOOST_INCLUDEDIR /usr/include/boost169) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 63208c5..77b8dfa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,7 +41,7 @@ target_link_libraries(ChatServer PUBLIC Boost::thread OpenSSL::SSL - penSSL::Crypto + OpenSSL::Crypto ) target_link_libraries(ChatClient diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt index 2f5a390..11b7294 100644 --- a/src/server/CMakeLists.txt +++ b/src/server/CMakeLists.txt @@ -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 )