Support Companion build with clang-cl on Windows (fw/libsimu not working yet due to compiler-specific macros in that code).

This commit is contained in:
Max Paperno
2018-07-09 12:02:26 -04:00
parent d507dbb5dd
commit 6110bbce98
4 changed files with 17 additions and 6 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ if(WIN32)
set(WIN_EXECUTABLE_TYPE WIN32) # GUI (WinMain) app
endif()
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /LD /MP")
if(NOT CLANG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /LD /MP")
endif()
if(NOT WIN_USE_CONSOLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS,5.01") # is this even needed?
endif()