Changeset 14390


Ignore:
Timestamp:
Dec 20, 2014, 10:28:43 PM (8 years ago)
Author:
mikedld
Message:

Improve cross-compilation support when using CMake

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14383 r14390  
    306306
    307307set(NEEDED_HEADERS
    308     libintl.h
    309308    stdbool.h
    310309    sys/statvfs.h
    311310    xfs/xfs.h)
     311
     312if(ENABLE_NLS)
     313    list(APPEND NEEDED_HEADERS libintl.h)
     314endif()
    312315
    313316foreach(H ${NEEDED_HEADERS})
     
    357360# endif()
    358361
     362if(ENABLE_NLS)
     363    check_library_exists(intl libintl_gettext "" HAVE_LIBINTL)
     364    if(HAVE_LIBINTL)
     365        set(LIBINTL_LIBRARY intl)
     366    endif()
     367endif()
     368
    359369check_library_exists(m sqrt "" HAVE_LIBM)
    360370if(HAVE_LIBM)
  • trunk/cmake/TrMacros.cmake

    r14350 r14390  
    6363            PREFIX "${${ID}_PREFIX}"
    6464            CMAKE_ARGS
     65                "-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}"
    6566                "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}"
    6667                "-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}"
  • trunk/libtransmission/CMakeLists.txt

    r14367 r14390  
    203203    ${DHT_LIBRARIES}
    204204    ${UTP_LIBRARIES}
     205    ${LIBINTL_LIBRARY}
    205206    ${LIBM_LIBRARY}
    206207)
Note: See TracChangeset for help on using the changeset viewer.