Skip to content

Commit

Permalink
Fix DirectX 12 shared library build.
Browse files Browse the repository at this point in the history
Explicitly linking library to avoid linking errors.
  • Loading branch information
giladreich committed Feb 19, 2019
1 parent 85ebd63 commit 57a6845
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ target_include_directories(${PROJECT_NAME} PUBLIC
${SOURCE_DIR}
${SOURCE_DIR}/examples
)
if(IMGUI_IMPL_DX12 AND NOT IMGUI_STATIC_LIBRARY)
target_link_libraries(${PROJECT_NAME} PUBLIC d3d12)
endif()


##################################################################################################################
Expand Down

0 comments on commit 57a6845

Please sign in to comment.