Skip to content

Commit

Permalink
[GLVM] Link only against libgl
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Feb 24, 2025
1 parent 67e046f commit 7d59ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/glvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
with:
name: windows-x64
path: lib/Native/Aardvark.Rendering.GL/windows/AMD64/

# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v7
# with:
Expand Down
5 changes: 3 additions & 2 deletions src/GLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.15)

project(glvm LANGUAGES CXX)
if(WIN32)
set(OS windows)
SET(ARCH AMD64)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
elseif(APPLE)
set(OS mac)
execute_process(COMMAND uname -m OUTPUT_VARIABLE ARCH)
Expand All @@ -30,7 +31,7 @@ add_library(glvm SHARED State.h glvm.h glvm.cpp State.cpp)

find_package(OpenGL REQUIRED)
include_directories( ${OPENGL_INCLUDE_DIRS} )
target_link_libraries(glvm ${OPENGL_LIBRARIES} )
target_link_libraries(glvm OpenGL::GL )

install(TARGETS glvm DESTINATION ${OS}/${ARCH})

0 comments on commit 7d59ade

Please sign in to comment.