2010-12-10 20:47:54 +01:00
|
|
|
include(CheckLibraryExists)
|
|
|
|
include(CheckCXXCompilerFlag)
|
|
|
|
|
|
|
|
# Check compiler flags
|
2015-07-31 00:30:34 +02:00
|
|
|
|
2014-08-18 07:03:46 +02:00
|
|
|
check_cxx_compiler_flag(/WX LIBCXX_HAS_WX_FLAG)
|
|
|
|
check_cxx_compiler_flag(/WX- LIBCXX_HAS_NO_WX_FLAG)
|
|
|
|
check_cxx_compiler_flag(/EHsc LIBCXX_HAS_EHSC_FLAG)
|
|
|
|
check_cxx_compiler_flag(/EHs- LIBCXX_HAS_NO_EHS_FLAG)
|
|
|
|
check_cxx_compiler_flag(/EHa- LIBCXX_HAS_NO_EHA_FLAG)
|
|
|
|
check_cxx_compiler_flag(/GR- LIBCXX_HAS_NO_GR_FLAG)
|
2010-12-10 20:47:54 +01:00
|
|
|
|
2015-07-31 00:30:34 +02:00
|
|
|
|
2010-12-10 20:47:54 +01:00
|
|
|
# Check libraries
|
|
|
|
check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB)
|
|
|
|
check_library_exists(c printf "" LIBCXX_HAS_C_LIB)
|
|
|
|
check_library_exists(m ccos "" LIBCXX_HAS_M_LIB)
|
2011-05-24 14:54:00 +02:00
|
|
|
check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB)
|
2010-12-10 20:47:54 +01:00
|
|
|
check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXX_HAS_GCC_S_LIB)
|