Skip to content

Commit d12ed0c

Browse files
committed
Fix cmake script bug
1 parent 677e2b7 commit d12ed0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

data/LibNexConfig.cmake.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ set(LIBNEX_LIBRARY "@LIBNEX_LIBRARY_FILE@")
3030
# Create the imported target
3131
add_library(LibNex::nex @LIBNEX_LIBTYPE@ IMPORTED)
3232
set_target_properties(LibNex::nex PROPERTIES IMPORTED_LOCATION "@LIBNEX_LIBRARY_FILE@")
33-
if(NOT "@LIBNEX_LIBRARIES@" STREQUAL "")
34-
target_link_libraries(LibNex::nex INTERFACE "@LIBNEX_LIBRARIES@")
35-
endif()
33+
target_link_libraries(LibNex::nex INTERFACE "-lpthread;@LIBNEX_LIBRARIES@")
3634
target_include_directories(LibNex::nex INTERFACE "@LIBNEX_INSTALL_INCLUDE_DIRS@")
3735

3836
# Set SOName

0 commit comments

Comments
 (0)