CMake: use same test for referencing and generating freeglutdll.def
authorSylvain Beucler <beuc@beuc.net>
Fri, 16 Mar 2012 20:43:29 +0000 (20:43 +0000)
committerSylvain Beucler <beuc@beuc.net>
Fri, 16 Mar 2012 20:43:29 +0000 (20:43 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1158 7f0cb862-5218-0410-a997-914c9d46530a

CMakeLists.txt

index 369e03c..b1e2752 100644 (file)
@@ -76,7 +76,7 @@ IF(WIN32)
         src/mswin/fg_window_mswin.c
         ${CMAKE_BINARY_DIR}/freeglut.rc # generated below from freeglut.rc.in
     )
-    IF (NOT CMAKE_CL_64)
+    IF (MSVC AND NOT CMAKE_CL_64)
         # .def file only for 32bit Windows builds
         LIST(APPEND FREEGLUT_SRCS
             ${CMAKE_BINARY_DIR}/freeglutdll.def # generated below from src/freeglutdll.def.in