diff options
Diffstat (limited to 'Tests/RunCMake/ParseImplicitLinkInfo/Inspect.cmake')
-rw-r--r-- | Tests/RunCMake/ParseImplicitLinkInfo/Inspect.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/ParseImplicitLinkInfo/Inspect.cmake b/Tests/RunCMake/ParseImplicitLinkInfo/Inspect.cmake new file mode 100644 index 0000000..42e1c67 --- /dev/null +++ b/Tests/RunCMake/ParseImplicitLinkInfo/Inspect.cmake @@ -0,0 +1,12 @@ +enable_language(C) + +set(info "") +foreach(var + CMAKE_C_IMPLICIT_LINK_DIRECTORIES + ) + if(DEFINED ${var}) + string(APPEND info "set(INFO_${var} \"${${var}}\")\n") + endif() +endforeach() + +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/info.cmake" "${info}") |