Permalink
Browse files

Android cmake fix

  • Loading branch information...
hrydgard committed Dec 21, 2017
1 parent 9679964 commit 9f02e9c4f027cb1ef692b79982f8abe7e8a4e9a9
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
View
@@ -84,7 +84,7 @@ if(NOT ANDROID)
endif()
endif()
if(NOT WIN32 AND VULKAN)
if(VULKAN AND NOT WIN32 AND NOT ANDROID)
IF (NOT Vulkan_FOUND)
find_library(Vulkan_LIBRARY NAMES vulkan HINTS "$ENV{VULKAN_SDK}/lib" "${CMAKE_SOURCE_DIR}/ext/vulkan" REQUIRED)
IF (Vulkan_LIBRARY)
@@ -1676,7 +1676,7 @@ set(GlslangLibs glslang OGLCompiler OSDependent SPIRV SPVRemapper spirv-cross-gl
target_link_libraries(${CoreLibName} Common native kirk cityhash sfmt19937 xbrz xxhash ${GlslangLibs}
${CoreExtraLibs} ${OPENGL_LIBRARIES} ${X11_LIBRARIES} ${CMAKE_DL_LIBS})
if(VULKAN)
if(VULKAN AND NOT ANDROID AND NOT WIN32)
target_link_libraries(${CoreLibName} ${Vulkan_LIBRARY})
endif()

0 comments on commit 9f02e9c

Please sign in to comment.