-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ggml: fix vulkan-shaders-gen build
The vulkan-shaders-gen target was not being built correctly in case of cross-compilation. Other outputs need to be built for the cross compile target, but vulkan-shaders-gen needs to be built for the host.
- Loading branch information
1 parent
755a9b2
commit e9b3777
Showing
2 changed files
with
38 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
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,7 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
project(vulkan-shaders-gen C CXX) | ||
|
||
find_package (Threads REQUIRED) | ||
|
||
set(TARGET vulkan-shaders-gen) | ||
add_executable(${TARGET} vulkan-shaders-gen.cpp) | ||
install(TARGETS ${TARGET} RUNTIME) | ||
if (${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) | ||
install(TARGETS ${TARGET} RUNTIME) | ||
else() | ||
install(TARGETS ${TARGET} RUNTIME DESTINATION bin) | ||
endif() | ||
target_compile_features(${TARGET} PRIVATE cxx_std_11) | ||
target_link_libraries(vulkan-shaders-gen PUBLIC Threads::Threads) |