Skip to content

Commit f7801e1

Browse files
committed
Fix find_library call on Tc/BSD
1 parent 89b8dc7 commit f7801e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ elseif (WIN32)
9191
else()
9292
target_include_directories(AdsToJava-3 PRIVATE "/usr/local/include/")
9393
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
94-
find_library(TC_ADS_DLL_LIBRARY NAMES "libTcAdsDll" HINTS "/usr/local/lib32/" REQUIRED)
94+
find_library(TC_ADS_DLL_LIBRARY NAMES "TcAdsDll" "libTcAdsDll" HINTS "/usr/local/lib32/" REQUIRED)
9595
else()
96-
find_library(TC_ADS_DLL_LIBRARY NAMES "libTcAdsDll" HINTS "/usr/local/lib/" REQUIRED)
96+
find_library(TC_ADS_DLL_LIBRARY NAMES "TcAdsDll" "libTcAdsDll" HINTS "/usr/local/lib/" REQUIRED)
9797
endif()
9898
endif()
9999
target_link_libraries(AdsToJava-3 "${TC_ADS_DLL_LIBRARY}")

0 commit comments

Comments
 (0)