Skip to content

Commit 0d985e5

Browse files
committed
fixup! cmake: Add TryAppendCXXFlags module
No need to try a flag in the linker context if it is not supported in the compiler context.
1 parent 6367599 commit 0d985e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/module/TryAppendCXXFlags.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function(try_append_cxx_flags flags)
102102
set(${TACXXF_RESULT_VAR} "${${result}}" PARENT_SCOPE)
103103
endif()
104104

105-
if(TACXXF_SKIP_LINK)
105+
if(NOT ${result} OR TACXXF_SKIP_LINK)
106106
return()
107107
endif()
108108

0 commit comments

Comments
 (0)