Changeset 14390 for trunk/CMakeLists.txt


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

Improve cross-compilation support when using CMake

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.