blob: aa63d2f40604a86f8b3511a048509810a83aea55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( CheckFunctionExists )
include( CheckCXXSourceCompiles )
check_type_size( wchar_t WCHAR_T )
if( HAVE_WCHAR_T )
tde_save( CMAKE_EXTRA_INCLUDE_FILES )
set( CMAKE_EXTRA_INCLUDE_FILES wchar.h )
check_type_size( mbstate_t MBSTATE_T )
tde_restore( CMAKE_EXTRA_INCLUDE_FILES )
check_function_exists( iswspace HAVE_ISWSPACE )
if( HAVE_MBSTATE_T )
check_function_exists( wcrtomb HAVE_WCRTOMB )
endif( )
endif( )
check_cxx_source_compiles(
"
#include <cmath>
int main(int, char*[]) {
float res = fmin(0, 1);
return 0;
}
"
HAVE_FMIN
)
|