Fixed libintl not being found in libc & made the test scripts call sh on

windows
This commit is contained in:
Snaipe 2015-07-31 09:06:32 +02:00
parent 9f26b192ec
commit 9fa44c1b1c
2 changed files with 3 additions and 3 deletions

View file

@ -36,8 +36,8 @@ find_path(LIBINTL_INCLUDE_DIR libintl.h
set(LIBINTL_LIB_FOUND FALSE)
if(LIBINTL_INCLUDE_DIR)
include(CheckFunctionExists)
check_function_exists(dgettext LIBINTL_LIBC_HAS_DGETTEXT)
include(CheckSymbolExists)
check_symbol_exists(dgettext libintl.h LIBINTL_LIBC_HAS_DGETTEXT)
if (LIBINTL_LIBC_HAS_DGETTEXT)
set(LIBINTL_LIBRARIES)

View file

@ -37,5 +37,5 @@ foreach(sample ${SAMPLES})
endforeach()
foreach(script ${SCRIPTS})
add_test(${script} ${CMAKE_CURRENT_LIST_DIR}/tests/${script}.sh)
add_test(${script} sh ${CMAKE_CURRENT_LIST_DIR}/tests/${script}.sh)
endforeach()