diff options
Diffstat (limited to 'cmake/PCFromUContext.cmake')
-rw-r--r-- | cmake/PCFromUContext.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/PCFromUContext.cmake b/cmake/PCFromUContext.cmake index c8ee57a..1d4eb85 100644 --- a/cmake/PCFromUContext.cmake +++ b/cmake/PCFromUContext.cmake @@ -42,7 +42,6 @@ macro(pc_from_ucontext variable) "uc_mcontext->__ss.__srr0") # OS X (>=10.5 [untested]) set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE=1) - set(CMAKE_REQUIRED_QUIET ON) if(HAVE_CYGWIN_SIGNAL_H) set(_inc "cygwin/signal.h") elseif(HAVE_SYS_UCONTEXT_H) @@ -51,10 +50,11 @@ macro(pc_from_ucontext variable) set(_inc "ucontext.h") endif() foreach(pc_field IN LISTS pc_fields) + string(MAKE_C_IDENTIFIER ${pc_field} pc_field_id) check_cxx_source_compiles( "#include <${_inc}>\nint main() { ucontext_t u; return u.${pc_field} == 0; }" - pc_field_found) - if(DEFINED pc_field_found) + HAVE_${pc_field_id}) + if(HAVE_${pc_field_id}) set(HAVE_${variable} ON) set(${variable} ${pc_field}) break() |