diff --git a/cmake/check_c_compiler_uses_glibc.cmake b/cmake/check_c_compiler_uses_glibc.cmake index 46755bec..686a54c8 100644 --- a/cmake/check_c_compiler_uses_glibc.cmake +++ b/cmake/check_c_compiler_uses_glibc.cmake @@ -26,11 +26,11 @@ function(check_c_compiler_uses_glibc result_variable) int main() { void * buffer[1]; int size = sizeof(buffer) / sizeof(void *); - backtrace(&buffer, size); + backtrace(buffer, size); return 0; } ]====]) check_c_source_compiles("${GLIBC_TEST_CODE}" ${result_variable}) - set(${result_variable} ${result_variable} PARENT_SCOPE) + set(${result_variable} ${${result_variable}} PARENT_SCOPE) endfunction()