mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-13 15:27:21 +00:00
[client] windows: add native clang-cl build
Build the Windows client against the MSVC ABI while retaining clang language support. Use vcpkg for ANGLE and libsamplerate, and build MsQuic with its bundled static OpenSSL.
This commit is contained in:
@@ -12,15 +12,25 @@ add_library(lg_gui STATIC
|
||||
cimplot/implot/implot_items.cpp
|
||||
)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
if(MSVC)
|
||||
target_compile_options(lg_gui PRIVATE /fp:precise)
|
||||
|
||||
set_source_files_properties(cimgui/cimgui.cpp PROPERTIES
|
||||
COMPILE_OPTIONS "/clang:-Wno-error=unused-function"
|
||||
)
|
||||
set_source_files_properties(cimplot/cimplot.cpp PROPERTIES
|
||||
COMPILE_OPTIONS
|
||||
"/clang:-Wno-error=array-bounds;/clang:-Wno-error=unused-function"
|
||||
)
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||
target_compile_options(lg_gui PRIVATE "-fno-fast-math")
|
||||
|
||||
set_source_files_properties(cimgui/cimgui.cpp PROPERTIES
|
||||
COMPILE_FLAGS "-Wno-error=unused-function"
|
||||
COMPILE_OPTIONS "-Wno-error=unused-function"
|
||||
)
|
||||
set_source_files_properties(cimplot/cimplot.cpp PROPERTIES
|
||||
COMPILE_FLAGS
|
||||
"-Wno-error=array-bounds -Wno-error=unused-function"
|
||||
COMPILE_OPTIONS
|
||||
"-Wno-error=array-bounds;-Wno-error=unused-function"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user