Skip to content

Commit

Permalink
fixup! [cimgui-pack] Build the upstream OpenGL3/GLFW backends
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jun 11, 2024
1 parent daa828a commit a4b1992
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cimgui-pack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ if (NOT DEFINED GLFW_LIBRARY)
set(GLFW_LIBRARY "glfw")
endif()

target_link_libraries(${target} "${GLFW_LIBRARY}" GL)

if (WIN32)
add_definitions("-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
target_link_libraries(${target} imm32)
target_link_libraries(${target} imm32 opengl32)
else()
add_definitions("-DIMGUI_IMPL_API=extern \"C\" ")
target_link_libraries(${target} "${GLFW_LIBRARY}" GL)
endif(WIN32)

target_include_directories(${target} PUBLIC
Expand Down

0 comments on commit a4b1992

Please sign in to comment.