commit | f30465d2b524f3fc882f9c083d44bba8c4f8c6bd | [log] [tgz] |
---|---|---|
author | ncesario-lunarg <71668273+ncesario-lunarg@users.noreply.github.com> | Thu Apr 29 07:10:32 2021 -0600 |
committer | GitHub <noreply@github.com> | Thu Apr 29 09:10:32 2021 -0400 |
tree | 14ff21d34b001cf521f3edacb137c2f15c8f1c1f | |
parent | f8c78cc534acb37878d5862e5ca2a4d105a20060 [diff] |
build: Fix Android build (#4157)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 8247f6f..6633bc9 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt
@@ -402,6 +402,12 @@ endif() endif() +if (ANDROID) + foreach(target ${SPIRV_TOOLS_TARGETS}) + target_link_libraries(${target} PRIVATE android log) + endforeach() +endif() + if(ENABLE_SPIRV_TOOLS_INSTALL) install(TARGETS ${SPIRV_TOOLS_TARGETS} EXPORT ${SPIRV_TOOLS}Targets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}