Fix: Remove /MP flag and improve FindEditbin.cmake for Windows clang-cl build

This commit is contained in:
laikh
2020-08-05 11:15:20 +08:00
committed by Charles Pigott
parent ab420d8cc0
commit 6358ae47de
2 changed files with 23 additions and 4 deletions

View File

@@ -23,8 +23,10 @@ macro(compile_flags)
# C++11 standard". We need C++11 for the way we use threads.
add_compile_options(/Zc:rvalueCast)
# Enable multi-threaded compilation.
add_compile_options(/MP)
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Enable multi-threaded compilation.
add_compile_options(/MP)
endif(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Add DPI manifest to project; other WIN32 targets get this via ottdres.rc
list(APPEND GENERATED_SOURCE_FILES "${CMAKE_SOURCE_DIR}/os/windows/openttd.manifest")