From e3cb6e468176e397c2efaa521a04956ebcc9c108 Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Fri, 9 Mar 2012 20:33:54 +0000 Subject: [PATCH] Specify libraries for windows static compilation git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1089 7f0cb862-5218-0410-a997-914c9d46530a --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b151e4f..e74b37d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,7 @@ ENDIF() IF(WIN32) + LIST(APPEND LIBS winmm) IF(BUILD_SHARED_LIBS) LIST(APPEND FREEGLUT_SRCS src/Common/freeglutdll.def freeglut.rc) # XXX I assume that if we want both shared and static this one is appropriate @@ -159,8 +160,9 @@ ELSE() # on Xrandr or Xxf86vm) SET_TARGET_PROPERTIES(freeglut PROPERTIES VERSION 3.9.0 SOVERSION 3 OUTPUT_NAME glut) SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME glut) - TARGET_LINK_LIBRARIES(freeglut ${LIBS}) ENDIF() +TARGET_LINK_LIBRARIES(freeglut ${LIBS}) +TARGET_LINK_LIBRARIES(freeglut_static ${LIBS}) IF(BUILD_SHARED_LIBS) INSTALL(TARGETS freeglut DESTINATION lib) -- 1.7.10.4