Michael J. Spencer | f5799be | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 1 | include(CheckLibraryExists) |
| 2 | include(CheckCXXCompilerFlag) |
| 3 | |
| 4 | # Check compiler flags |
Eric Fiselier | ff16b9a | 2015-07-29 21:07:28 +0000 | [diff] [blame^] | 5 | |
Eric Fiselier | 0058c80 | 2014-08-18 05:03:46 +0000 | [diff] [blame] | 6 | check_cxx_compiler_flag(/WX LIBCXX_HAS_WX_FLAG) |
| 7 | check_cxx_compiler_flag(/WX- LIBCXX_HAS_NO_WX_FLAG) |
| 8 | check_cxx_compiler_flag(/EHsc LIBCXX_HAS_EHSC_FLAG) |
| 9 | check_cxx_compiler_flag(/EHs- LIBCXX_HAS_NO_EHS_FLAG) |
| 10 | check_cxx_compiler_flag(/EHa- LIBCXX_HAS_NO_EHA_FLAG) |
| 11 | check_cxx_compiler_flag(/GR- LIBCXX_HAS_NO_GR_FLAG) |
Michael J. Spencer | f5799be | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 12 | |
Eric Fiselier | ff16b9a | 2015-07-29 21:07:28 +0000 | [diff] [blame^] | 13 | |
Michael J. Spencer | f5799be | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 14 | # Check libraries |
| 15 | check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB) |
| 16 | check_library_exists(c printf "" LIBCXX_HAS_C_LIB) |
| 17 | check_library_exists(m ccos "" LIBCXX_HAS_M_LIB) |
Howard Hinnant | cf76200 | 2011-05-24 12:54:00 +0000 | [diff] [blame] | 18 | check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB) |
Michael J. Spencer | f5799be | 2010-12-10 19:47:54 +0000 | [diff] [blame] | 19 | check_library_exists(gcc_s __gcc_personality_v0 "" LIBCXX_HAS_GCC_S_LIB) |
| 20 | |