Ticket #46831: patch-OpenGTL-GTLCore-CMakeLists.txt.diff

File patch-OpenGTL-GTLCore-CMakeLists.txt.diff, 1.1 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • OpenGTL/GTLCore/CMakeLists.txt

    # HG changeset patch
    # User Michael Palimaka <kensington@gentoo.org>
    # Date 1359484092 -39600
    #      Wed Jan 30 05:28:12 2013 +1100
    # Node ID 99a2017746c0e4186b3ceb480ca2d9f395a07b86
    # Parent  e150672a54adaa0f09ff123a9c5b8973fe399e6c
    Fix underlinking.
    
    diff -r e150672a54ad -r 99a2017746c0 OpenGTL/GTLCore/CMakeLists.txt
     
    1010
    1111## GTLCore library ##
    1212
     13if(PTHREAD_FOUND)
     14  set(GTLCore_Thread_LIBS pthread)
     15endif(PTHREAD_FOUND)
     16
    1317set(GTLCore_SRCS
    1418  AbstractColorConverter.cpp
    1519  AbstractImage.cpp
     
    110114set(EXTRA_GTLCORE_LINK_OPTIONS -Wl,-u,__ZTVN4llvm3JITE )
    111115endif()
    112116
    113 target_link_libraries(GTLCore ${LLVM_LDFLAGS} ${LLVM_LIBS} ${EXTRA_GTLCORE_LINK_OPTIONS})
     117target_link_libraries(GTLCore ${LLVM_LDFLAGS} ${LLVM_LIBS} ${GTLCore_Thread_LIBS} ${EXTRA_GTLCORE_LINK_OPTIONS})
    114118
    115119# Set the ABI version of the library
    116120set_target_properties(GTLCore PROPERTIES VERSION ${OPENGTL_LIB_VERSION} SOVERSION ${OPENGTL_LIB_SOVERSION} )