mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
rename freeglut_static.lib for compatibility with FindGLUT.cmake
This commit is contained in:
parent
9ea963dcec
commit
68bfea163a
@ -1,3 +1,3 @@
|
|||||||
Source: freeglut
|
Source: freeglut
|
||||||
Version: 3.0.0-2
|
Version: 3.0.0-3
|
||||||
Description: Open source implementation of GLUT with source and binary backwards compatibility.
|
Description: Open source implementation of GLUT with source and binary backwards compatibility.
|
||||||
|
@ -35,11 +35,17 @@ vcpkg_install_cmake()
|
|||||||
# Patch header
|
# Patch header
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h FREEGLUT_STDH)
|
file(READ ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h FREEGLUT_STDH)
|
||||||
string(REPLACE "pragma comment (lib, \"freeglut_staticd.lib\")"
|
string(REPLACE "pragma comment (lib, \"freeglut_staticd.lib\")"
|
||||||
"pragma comment (lib, \"freeglut_static.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
||||||
string(REPLACE "pragma comment (lib, \"freeglutd.lib\")"
|
string(REPLACE "pragma comment (lib, \"freeglutd.lib\")"
|
||||||
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
"pragma comment (lib, \"freeglut.lib\")" FREEGLUT_STDH "${FREEGLUT_STDH}")
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h "${FREEGLUT_STDH}")
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h "${FREEGLUT_STDH}")
|
||||||
|
|
||||||
|
# Rename static lib (otherwise it's incompatible with FindGLUT.cmake)
|
||||||
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
|
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/freeglut_static.lib ${CURRENT_PACKAGES_DIR}/lib/freeglut.lib)
|
||||||
|
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/freeglut_static.lib ${CURRENT_PACKAGES_DIR}/debug/lib/freeglut.lib)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Clean
|
# Clean
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user