build: enable parallel builds in msbuild using MTT (#17708)
* build: enable parallel builds in msbuild using MTT * check LLAMA_STANDALONE
This commit is contained in:
parent
dea9ba27cb
commit
d8b5cdc4fe
|
|
@ -72,6 +72,12 @@ if (MSVC)
|
||||||
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
|
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (LLAMA_STANDALONE)
|
||||||
|
# enable parallel builds for msbuild
|
||||||
|
list(APPEND CMAKE_VS_GLOBALS UseMultiToolTask=true)
|
||||||
|
list(APPEND CMAKE_VS_GLOBALS EnforceProcessCountAcrossBuilds=true)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||||
set(LLAMA_TOOLS_INSTALL_DEFAULT OFF)
|
set(LLAMA_TOOLS_INSTALL_DEFAULT OFF)
|
||||||
else()
|
else()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue