mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
fixed compilation error on windows.
This commit is contained in:
@@ -73,8 +73,14 @@ find_package(glfw3 REQUIRED)
|
||||
# set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
# add_subdirectory(<path_to_glfw_source>)
|
||||
|
||||
# imgui/glfw get confused if not statically built
|
||||
# on windows.
|
||||
IF (WIN32)
|
||||
add_library(cimgui STATIC ${IMGUI_SOURCES})
|
||||
ELSE()
|
||||
add_library(cimgui SHARED ${IMGUI_SOURCES})
|
||||
ENDIF()
|
||||
|
||||
add_library(cimgui SHARED ${IMGUI_SOURCES})
|
||||
target_link_libraries(cimgui ${IMGUI_LIBRARIES} glfw)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user