Changeset View
Changeset View
Standalone View
Standalone View
openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
Show All 22 Lines | macro(libomp_setup_flags flags) | ||||
endif() | endif() | ||||
endmacro() | endmacro() | ||||
# Gets flags common to both the C and C++ compiler | # Gets flags common to both the C and C++ compiler | ||||
function(libomp_get_c_and_cxxflags_common flags) | function(libomp_get_c_and_cxxflags_common flags) | ||||
set(flags_local) | set(flags_local) | ||||
libomp_append(flags_local -std=c++11 LIBOMP_HAVE_STD_CPP11_FLAG) | libomp_append(flags_local -std=c++11 LIBOMP_HAVE_STD_CPP11_FLAG) | ||||
libomp_append(flags_local -fno-exceptions LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG) | libomp_append(flags_local -fno-exceptions LIBOMP_HAVE_FNO_EXCEPTIONS_FLAG) | ||||
libomp_append(flags_local -fno-rtti LIBOMP_HAVE_FNO_RTTI_FLAG) | |||||
if(${LIBOMP_ENABLE_WERROR}) | if(${LIBOMP_ENABLE_WERROR}) | ||||
libomp_append(flags_local -Werror LIBOMP_HAVE_WERROR_FLAG) | libomp_append(flags_local -Werror LIBOMP_HAVE_WERROR_FLAG) | ||||
endif() | endif() | ||||
libomp_append(flags_local -Wno-sign-compare LIBOMP_HAVE_WNO_SIGN_COMPARE_FLAG) | libomp_append(flags_local -Wno-sign-compare LIBOMP_HAVE_WNO_SIGN_COMPARE_FLAG) | ||||
libomp_append(flags_local -Wno-unused-function LIBOMP_HAVE_WNO_UNUSED_FUNCTION_FLAG) | libomp_append(flags_local -Wno-unused-function LIBOMP_HAVE_WNO_UNUSED_FUNCTION_FLAG) | ||||
libomp_append(flags_local -Wno-unused-local-typedef LIBOMP_HAVE_WNO_UNUSED_LOCAL_TYPEDEF_FLAG) | libomp_append(flags_local -Wno-unused-local-typedef LIBOMP_HAVE_WNO_UNUSED_LOCAL_TYPEDEF_FLAG) | ||||
libomp_append(flags_local -Wno-unused-value LIBOMP_HAVE_WNO_UNUSED_VALUE_FLAG) | libomp_append(flags_local -Wno-unused-value LIBOMP_HAVE_WNO_UNUSED_VALUE_FLAG) | ||||
libomp_append(flags_local -Wno-unused-variable LIBOMP_HAVE_WNO_UNUSED_VARIABLE_FLAG) | libomp_append(flags_local -Wno-unused-variable LIBOMP_HAVE_WNO_UNUSED_VARIABLE_FLAG) | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |