[Server] Add MP flag to the server if enabled

This commit is contained in:
Koncord 2018-12-29 12:03:01 +08:00
parent a0e89208a0
commit c2230a8a21

View file

@ -154,6 +154,11 @@ add_executable(tes3mp-server
)
target_compile_options(tes3mp-server PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/permissive->)
if (OPENMW_MP_BUILD)
target_compile_options(tes3mp-server PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/MP>)
endif()
set_target_properties(tes3mp-server PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED YES