-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove unnecessary Vulkan library linkage in CMakeLists.txt
Since `vulkan-shader-gen.cpp` only requires the `glslc` executable and not the Vulkan headers or libraries, CMakeLists.txt needs to be corrected. (See: ecc93d0)
- Loading branch information
1 parent
efe4b14
commit 37d0cb6
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
find_package (Threads REQUIRED) | ||
find_package(Vulkan COMPONENTS glslc REQUIRED) | ||
find_program(GLSLC_EXECUTABLE glslc) | ||
if(NOT GLSLC_EXECUTABLE) | ||
message(FATAL_ERROR "glslc not found.") | ||
endif() | ||
|
||
set(TARGET vulkan-shaders-gen) | ||
add_executable(${TARGET} vulkan-shaders-gen.cpp) | ||
install(TARGETS ${TARGET} RUNTIME) | ||
target_compile_features(${TARGET} PRIVATE cxx_std_17) | ||
target_link_libraries(vulkan-shaders-gen PUBLIC Threads::Threads) | ||
target_link_libraries(vulkan-shaders-gen PRIVATE Vulkan::Vulkan) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters