Skip to content

Commit

Permalink
Fix find_library call on Tc/BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
vossjannik committed Dec 19, 2023
1 parent 89b8dc7 commit f7801e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ elseif (WIN32)
else()
target_include_directories(AdsToJava-3 PRIVATE "/usr/local/include/")
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
find_library(TC_ADS_DLL_LIBRARY NAMES "libTcAdsDll" HINTS "/usr/local/lib32/" REQUIRED)
find_library(TC_ADS_DLL_LIBRARY NAMES "TcAdsDll" "libTcAdsDll" HINTS "/usr/local/lib32/" REQUIRED)
else()
find_library(TC_ADS_DLL_LIBRARY NAMES "libTcAdsDll" HINTS "/usr/local/lib/" REQUIRED)
find_library(TC_ADS_DLL_LIBRARY NAMES "TcAdsDll" "libTcAdsDll" HINTS "/usr/local/lib/" REQUIRED)
endif()
endif()
target_link_libraries(AdsToJava-3 "${TC_ADS_DLL_LIBRARY}")
Expand Down

0 comments on commit f7801e1

Please sign in to comment.