From a8b4b6403727600bf60e69fffd486f363889f966 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Fri, 4 Mar 2016 16:01:56 -0800 Subject: [PATCH] utils: link ptxinfo statically Allow Ptex's command-line tools to be installed sans libPtex.so by linking ptxinfo statically. Signed-off-by: David Aguilar --- src/utils/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index 81f04d5..5d0c529 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -10,6 +10,6 @@ execute_process(COMMAND git describe ${PTEX_SHA} add_executable(ptxinfo ptxinfo.cpp) add_definitions(-DPTEX_VER="${PTEX_VER} \(${PTEX_SHA}\)" -DPTEX_STATIC) -target_link_libraries(ptxinfo Ptex_dynamic) +target_link_libraries(ptxinfo Ptex_static z ${CMAKE_THREAD_LIBS_INIT}) install(TARGETS ptxinfo DESTINATION ${CMAKE_INSTALL_BINDIR})