2022-04-06 02:14:30 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-12-30 02:34:27 +08:00
|
|
|
index 98d07c9..5b79f06 100644
|
2022-04-06 02:14:30 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-12-30 02:34:27 +08:00
|
|
|
@@ -436,12 +436,12 @@ IF(WIN32)
|
|
|
|
LIST(APPEND LIBS winmm gdi32)
|
|
|
|
IF(FREEGLUT_BUILD_SHARED_LIBS)
|
|
|
|
TARGET_COMPILE_DEFINITIONS(freeglut PRIVATE FREEGLUT_EXPORTS)
|
|
|
|
- SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME ${LIBNAME})
|
|
|
|
+ SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME freeglut)
|
2022-04-06 02:14:30 +08:00
|
|
|
ENDIF()
|
|
|
|
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
|
|
|
TARGET_COMPILE_DEFINITIONS(freeglut_static PUBLIC FREEGLUT_STATIC)
|
2022-12-30 02:34:27 +08:00
|
|
|
IF(FREEGLUT_REPLACE_GLUT)
|
|
|
|
- SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
|
|
|
|
+ SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME freeglut)
|
2022-04-06 02:14:30 +08:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2022-12-30 02:34:27 +08:00
|
|
|
ELSE()
|
2022-04-06 02:14:30 +08:00
|
|
|
diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h
|
|
|
|
index a5efb3b..6bdcdfb 100644
|
|
|
|
--- a/include/GL/freeglut_std.h
|
|
|
|
+++ b/include/GL/freeglut_std.h
|
|
|
|
@@ -71,9 +71,9 @@
|
|
|
|
/* Link with Win32 static freeglut lib */
|
|
|
|
# if FREEGLUT_LIB_PRAGMAS
|
|
|
|
# if defined(NDEBUG) || !defined(_DEBUG)
|
|
|
|
-# pragma comment (lib, "freeglut_static.lib")
|
|
|
|
+# pragma comment (lib, "freeglut.lib")
|
|
|
|
# else
|
|
|
|
-# pragma comment (lib, "freeglut_staticd.lib")
|
|
|
|
+# pragma comment (lib, "freeglutd.lib")
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
|