From a38359cdcd97bfcf5d02dd65c66f516eac8208ad Mon Sep 17 00:00:00 2001 From: "yuri@FreeBSD.org" Date: Wed, 17 Mar 2021 13:45:37 -0700 Subject: [PATCH] Remove the STATIC requirement from the library to allow cmake's BUILD_SHARED_LIBS to work --- CMakeLists.txt | 2 +- cmake/Modules/FindGLEW.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 695fcee..04b3adc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,7 +141,7 @@ set(FREETYPE_GL_SRC vertex-buffer.c ) -add_library(freetype-gl STATIC +add_library(freetype-gl ${FREETYPE_GL_SRC} ${FREETYPE_GL_HDR} ) diff --git a/cmake/Modules/FindGLEW.cmake b/cmake/Modules/FindGLEW.cmake index 5053c14..9597d7f 100644 --- a/cmake/Modules/FindGLEW.cmake +++ b/cmake/Modules/FindGLEW.cmake @@ -32,7 +32,7 @@ ELSE (WIN32) # Prefer the static library. FIND_LIBRARY( GLEW_LIBRARY - NAMES libGLEW.a GLEW + NAMES libGLEW GLEW PATHS /usr/lib64 /usr/lib