We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c7185d commit 7ea15bbCopy full SHA for 7ea15bb
ggml/src/ggml-vulkan/CMakeLists.txt
@@ -1,9 +1,18 @@
1
cmake_minimum_required(VERSION 3.19)
2
cmake_policy(SET CMP0114 NEW)
3
cmake_policy(SET CMP0116 NEW)
4
+if (POLICY CMP0147)
5
+ # Parallel build custom build steps
6
+ cmake_policy(SET CMP0147 NEW)
7
+endif()
8
9
find_package(Vulkan COMPONENTS glslc REQUIRED)
10
11
+if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
12
+ # Parallel build object files
13
+ add_definitions(/MP)
14
15
+
16
function(detect_host_compiler)
17
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
18
find_program(HOST_C_COMPILER NAMES cl gcc clang NO_CMAKE_FIND_ROOT_PATH)
0 commit comments