mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[freeglut] Fix the internal default link name of freeglut. Fixed #4243.
This commit is contained in:
parent
40510c3aaf
commit
f138ef3747
@ -1,3 +1,3 @@
|
|||||||
Source: freeglut
|
Source: freeglut
|
||||||
Version: 3.0.0-4
|
Version: 3.0.0-5
|
||||||
Description: Open source implementation of GLUT with source and binary backwards compatibility.
|
Description: Open source implementation of GLUT with source and binary backwards compatibility.
|
||||||
|
@ -25,6 +25,12 @@ else()
|
|||||||
set(FREEGLUT_DYNAMIC OFF)
|
set(FREEGLUT_DYNAMIC OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Patch header
|
||||||
|
file(READ ${SOURCE_PATH}/include/GL/freeglut_std.h FREEGLUT_STDH)
|
||||||
|
string(REGEX REPLACE "\"freeglut[_a-z]+.lib\""
|
||||||
|
"\"freeglut.lib\"" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
||||||
|
file(WRITE ${SOURCE_PATH}/include/GL/freeglut_std.h "${FREEGLUT_STDH}")
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS
|
OPTIONS
|
||||||
@ -36,14 +42,6 @@ vcpkg_configure_cmake(
|
|||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
# Patch header
|
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h FREEGLUT_STDH)
|
|
||||||
string(REPLACE "pragma comment (lib, \"freeglut_staticd.lib\")"
|
|
||||||
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
|
||||||
string(REPLACE "pragma comment (lib, \"freeglutd.lib\")"
|
|
||||||
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h "${FREEGLUT_STDH}")
|
|
||||||
|
|
||||||
# Rename static lib (otherwise it's incompatible with FindGLUT.cmake)
|
# Rename static lib (otherwise it's incompatible with FindGLUT.cmake)
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user