From cb228b70f0bf443e483c07cd95f09c625a9576a6 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Thu, 15 Mar 2012 03:06:42 +0000 Subject: [PATCH] oops, generating freeglutdll.def was not specific to MSVC git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1137 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeglut/freeglut/CMakeLists.txt b/freeglut/freeglut/CMakeLists.txt index 1e91a68..fd27a7f 100644 --- a/freeglut/freeglut/CMakeLists.txt +++ b/freeglut/freeglut/CMakeLists.txt @@ -220,8 +220,8 @@ IF(WIN32) # we also have to generate freeglut.rc, which contains the version # number CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/freeglut.rc.in ${CMAKE_BINARY_DIR}/freeglut.rc) - IF (NOT CMAKE_CL_64) - # .def file only for 32bit Windows builds + IF (MSVC AND NOT CMAKE_CL_64) + # .def file only for 32bit Windows builds with Visual Studio CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/src/freeglutdll.def.in ${CMAKE_BINARY_DIR}/freeglutdll.def) ENDIF() ENDIF()