Browse Source

cmake: Include iconv when testing ICONV_CONST if needed.

pull/2/head
Pierre d'Herbemont 19 years ago
parent
commit
5007c61eae
  1. 2
      extras/buildsystem/cmake/include/config.cmake

2
extras/buildsystem/cmake/include/config.cmake

@ -109,6 +109,7 @@ if(NOT HAVE_ICONV)
set(LIBICONV "iconv")
check_library_exists(iconv iconv "" HAVE_ICONV)
endif(NOT HAVE_ICONV)
set(CMAKE_REQUIRED_LIBRARIES ${LIBICONV})
CHECK_C_SOURCE_COMPILES(" #include <iconv.h>
int main() { return iconv(0, (char **)0, 0, (char**)0, 0); }" ICONV_NO_CONST)
if( ICONV_NO_CONST )
@ -116,6 +117,7 @@ if( ICONV_NO_CONST )
else( ICONV_NO_CONST )
set( ICONV_CONST " ")
endif( ICONV_NO_CONST )
set(CMAKE_REQUIRED_LIBRARIES)
check_library_exists(rt clock_nanosleep "" HAVE_CLOCK_NANOSLEEP)
if (HAVE_CLOCK_NANOSLEEP)

Loading…
Cancel
Save