mirror of
https://github.com/leejet/stable-diffusion.cpp
synced 2026-04-23 23:31:46 +02:00
chore: enable MSVC parallel compilation with /MP (#1438)
This commit is contained in:
parent
3c99f700de
commit
7d33d4b2dd
@ -11,6 +11,10 @@ endif()
|
||||
if (MSVC)
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
add_compile_definitions(_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
|
||||
add_compile_options(
|
||||
$<$<COMPILE_LANGUAGE:C>:/MP>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/MP>
|
||||
)
|
||||
endif()
|
||||
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user