demos: fix cube cmake
authorJeremy Hayes <jeremy@lunarg.com>
Sun, 9 Oct 2016 18:26:27 +0000 (12:26 -0600)
committerJeremy Hayes <jeremy@lunarg.com>
Sun, 9 Oct 2016 19:17:39 +0000 (13:17 -0600)
Change-Id: Ia7a79bee7353ac484e691916591c585643a8753d

demos/CMakeLists.txt

index 7b11061..837d32d 100644 (file)
@@ -108,8 +108,8 @@ else()
     endif()
 
     add_executable(cube WIN32 cube.c ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
+    target_link_libraries(cube ${LIBRARIES})
 endif()
-target_link_libraries(cube ${LIBRARIES})
 
 if(UNIX)
     add_executable(cubepp cube.cpp ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)