mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] cmake: use default library type for libglassnt, libglass, wpigui, and imgui (#5797)
On Windows, imgui and wpigui need to be static. On Mac, they must be dynamic.
This commit is contained in:
@@ -8,7 +8,11 @@ file(GLOB wpigui_windows_src src/main/native/directx11/*.cpp)
|
||||
file(GLOB wpigui_mac_src src/main/native/metal/*.mm)
|
||||
file(GLOB wpigui_unix_src src/main/native/opengl3/*.cpp)
|
||||
|
||||
add_library(wpigui STATIC ${wpigui_src})
|
||||
if (MSVC)
|
||||
add_library(wpigui STATIC ${wpigui_src})
|
||||
else()
|
||||
add_library(wpigui ${wpigui_src})
|
||||
endif()
|
||||
set_target_properties(wpigui PROPERTIES DEBUG_POSTFIX "d")
|
||||
set_property(TARGET wpigui PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user