Changeset 14679


Ignore:
Timestamp:
Feb 7, 2016, 12:00:15 PM (5 years ago)
Author:
mikedld
Message:

Only depend on iconv if found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/CMakeLists.txt

    r14674 r14679  
    201201    ${CRYPTO_INCLUDE_DIRS}
    202202    ${CURL_INCLUDE_DIRS}
    203     ${ICONV_INCLUDE_DIRS}
    204203    ${EVENT2_INCLUDE_DIRS}
    205204    ${NATPMP_INCLUDE_DIRS}
     
    209208    ${B64_INCLUDE_DIRS}
    210209)
     210
     211if(ICONV_FOUND)
     212    include_directories(${ICONV_INCLUDE_DIRS})
     213endif()
    211214
    212215if(ENABLE_UTP)
     
    234237    ${CRYPTO_LIBRARIES}
    235238    ${CURL_LIBRARIES}
    236     ${ICONV_LIBRARIES}
    237239    ${EVENT2_LIBRARIES}
    238240    ${NATPMP_LIBRARIES}
     
    244246    ${LIBM_LIBRARY}
    245247)
     248
     249if(ICONV_FOUND)
     250    target_link_libraries(${TR_NAME} ${ICONV_LIBRARIES})
     251endif()
    246252
    247253if(WIN32)
Note: See TracChangeset for help on using the changeset viewer.