Skip to content

Commit

Permalink
Fix try_compile bug on gcc 4 (#4091)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine authored Jul 13, 2023
1 parent 6597019 commit de98786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ function(feature_probe PROBE_NAME)
CMAKE_FLAGS ${ADDITIONAL_FLAGS}
COMPILE_DEFINITIONS -c ${GLOBAL_FLAGS} ${PROBE_FLAGS}
${ARGN}
OUTPUT_VARIABLE TRY_COMPILE_OUTPUT
)
# Uncomment the line below to get the output of the try_compile command
#message(STATUS "Output of try_compile: ${TRY_COMPILE_OUTPUT}")

# Set the result of the probe
feature_probe_result(${PROBE_NAME} ${IS_AVAILABLE})
Expand Down
2 changes: 1 addition & 1 deletion tests/features/GLOBAL.flags
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-Werror=implicit-function-declaration
-Werror-implicit-function-declaration

0 comments on commit de98786

Please sign in to comment.