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 7ce614d commit 57f80a2
Showing 1 changed file with 3 additions and 2 deletions.
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 57f80a2

Please sign in to comment.