aboutsummaryrefslogtreecommitdiff
path: root/ports/llgl/fix-install-error.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-09-12 16:26:17 -0700
committerPhil Christensen <philc@microsoft.com>2019-09-12 16:26:17 -0700
commit0e23cd50fec3f5df9c84a18c9cc1f2bd4709ef71 (patch)
treefcf2725252a1cb639692f21ccc1de560d5e24fd4 /ports/llgl/fix-install-error.patch
parent563166f21aa01cd9c4dcca771428a69ece7be1bf (diff)
downloadvcpkg-0e23cd50fec3f5df9c84a18c9cc1f2bd4709ef71.tar.gz
vcpkg-0e23cd50fec3f5df9c84a18c9cc1f2bd4709ef71.zip
[llgl] Add new port (#7701)
* [llgl] Add new port
Diffstat (limited to 'ports/llgl/fix-install-error.patch')
-rw-r--r--ports/llgl/fix-install-error.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/ports/llgl/fix-install-error.patch b/ports/llgl/fix-install-error.patch
new file mode 100644
index 000000000..30b9c3040
--- /dev/null
+++ b/ports/llgl/fix-install-error.patch
@@ -0,0 +1,44 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f440884..d1b0c2f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -614,6 +614,12 @@ if(LLGL_BUILD_RENDERER_OPENGL)
+ target_link_libraries(LLGL_OpenGL LLGL ${OPENGL_LIBRARIES})
+
+ ADD_DEFINE(LLGL_BUILD_RENDERER_OPENGL)
++
++ install(TARGETS LLGL_OpenGL
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++ )
+ else()
+ message("Missing OpenGL -> LLGL_OpenGL renderer will be excluded from project")
+ endif()
+@@ -681,6 +687,12 @@ if(WIN32)
+ target_link_libraries(LLGL_Direct3D11 LLGL d3d11 dxgi D3DCompiler)
+
+ ADD_DEFINE(LLGL_BUILD_RENDERER_DIRECT3D11)
++
++ install(TARGETS LLGL_Direct3D11
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++ )
+ endif()
+
+ if(LLGL_BUILD_RENDERER_DIRECT3D12)
+@@ -821,4 +833,13 @@ if(LLGL_ENABLE_SPIRV_REFLECT)
+ message("Including Submodule: SPIRV")
+ endif()
+
++# Install targets
++install(TARGETS ${PROJECT_NAME}
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++)
++# Install headers
++install(DIRECTORY ${PROJECT_INCLUDE_DIR} DESTINATION include)
++
+