diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b11178..7749fa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,10 +115,11 @@ if(TRITON_ENABLE_CC_HTTP OR TRITON_ENABLE_CC_GRPC OR TRITON_ENABLE_PERF_ANALYZER file(STRINGS /etc/os-release DISTRO REGEX "^NAME=") string(REGEX REPLACE "NAME=\"(.*)\"" "\\1" DISTRO "${DISTRO}") message(STATUS "Distro Name: ${DISTRO}") - if(DISTRO STREQUAL "CentOS Linux") + if(DISTRO STREQUAL "CentOS Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8) set (CURL_LIB_DIR "lib64") endif() endif() + message(STATUS "Triton client CURL_LIB_DIR=${CURL_LIB_DIR}") set(_cc_client_depends "") if(${TRITON_ENABLE_CC_HTTP}) diff --git a/src/c++/library/CMakeLists.txt b/src/c++/library/CMakeLists.txt index bdaae25..0e599f2 100644 --- a/src/c++/library/CMakeLists.txt +++ b/src/c++/library/CMakeLists.txt @@ -160,7 +160,7 @@ if(TRITON_ENABLE_CC_GRPC OR TRITON_ENABLE_PERF_ANALYZER) ${_client_target} PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W3 /D_WIN32_WINNT=0x0A00 /EHsc> ) set_target_properties( @@ -320,7 +320,7 @@ if(TRITON_ENABLE_CC_HTTP OR TRITON_ENABLE_PERF_ANALYZER) httpclient PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/libhttpclient.ldscript - LINK_FLAGS "-Wl,--version-script=libhttpclient.ldscript" + LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/libhttpclient.ldscript" ) endif() # NOT WIN32 @@ -337,7 +337,7 @@ if(TRITON_ENABLE_CC_HTTP OR TRITON_ENABLE_PERF_ANALYZER) ${_client_target} PRIVATE $<$,$,$>: -Wall -Wextra -Wno-unused-parameter -Werror> - $<$:/W0 /D_WIN32_WINNT=0x0A00 /EHsc> + $<$:/W3 /D_WIN32_WINNT=0x0A00 /EHsc> ) set_target_properties(