Skip to content

Commit

Permalink
[build] misc cmakelists fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicebyte committed Aug 11, 2024
1 parent bb58794 commit 1483edb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ else()
# Vulkan backend.
nmk_static_library(NAME nicegraf-vk
SRCS ${NICEGRAF_VK_SRCS}
PUB_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/include
DEPS ${NICEGRAF_VK_DEPS})
endif()

Expand All @@ -137,10 +138,10 @@ if (NGF_BUILD_TESTS STREQUAL "yes")
DEPS nicegraf-vk-for-tests "$<IF:$<NOT:$<BOOL:${WIN32}>>,dl,>")
endif()

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/misc/common)

# Build samples only if explicitly requested.
if (NGF_BUILD_SAMPLES STREQUAL "yes")
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/misc/common)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/samples/deps/glfw)

# Ensure we have the required dependencies are available.
Expand Down

0 comments on commit 1483edb

Please sign in to comment.