Skip to content

Commit 1e18a6c

Browse files
committed
Examples: GLFW+Vulkan: make GLFW_DIR overridable in cmake bit. (ocornut#8419)
1 parent a6bcbb1 commit 1e18a6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/example_glfw_vulkan/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES")
1515
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES")
1616

1717
# GLFW
18-
set(GLFW_DIR ../../../glfw) # Set this to point to an up-to-date GLFW repo
18+
if(NOT GLFW_DIR)
19+
set(GLFW_DIR ../../../glfw) # Set this to point to an up-to-date GLFW repo
20+
endif()
1921
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF)
2022
option(GLFW_BUILD_TESTS "Build the GLFW test programs" OFF)
2123
option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF)

0 commit comments

Comments
 (0)