Skip to content

Commit

Permalink
Avoid dll install on windows for static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Feb 11, 2019
1 parent 80343d9 commit ce14730
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/opengl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ install(TARGETS forge
INCLUDES DESTINATION ${FG_INSTALL_INC_DIR})

# install dependencies
if (WIN32 AND FG_WITH_FREEIMAGE AND NOT FG_USE_STATIC_FREEIMAGE)
if (WIN32 AND BUILD_SHARED_LIBS AND FG_WITH_FREEIMAGE AND NOT FG_USE_STATIC_FREEIMAGE)
install(FILES $<TARGET_FILE:FreeImage::FreeImage>
DESTINATION ${FG_INSTALL_BIN_DIR}
COMPONENT dependencies)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/opengl/glfw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (NOT BUILD_SHARED_LIBS)
install(TARGETS forge_wtk_interface EXPORT ForgeTargets)
endif ()

if (WIN32)
if (WIN32 AND BUILD_SHARED_LIBS)
install(FILES $<TARGET_FILE:glfw>
DESTINATION ${FG_INSTALL_BIN_DIR}
COMPONENT dependencies)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/opengl/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (NOT BUILD_SHARED_LIBS)
install(TARGETS forge_wtk_interface EXPORT ForgeTargets)
endif ()

if (WIN32)
if (WIN32 AND BUILD_SHARED_LIBS)
install(FILES $<TARGET_FILE:SDL2::SDL2>
DESTINATION ${FG_INSTALL_BIN_DIR}
COMPONENT dependencies)
Expand Down

0 comments on commit ce14730

Please sign in to comment.