浏览代码

Does not try and find the math library under Visual Studio compilers, where it is not needed.

Russ Taylor 10 年之前
父节点
当前提交
8d07cfe1f3
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      samples/SimpleOpenGL/CMakeLists.txt

+ 5 - 1
samples/SimpleOpenGL/CMakeLists.txt

@@ -1,6 +1,10 @@
 FIND_PACKAGE(OpenGL)
 FIND_PACKAGE(GLUT)
-find_library(M_LIB m)
+IF ( MSVC )
+  SET(M_LIB)
+ELSE ( MSVC )
+  find_library(M_LIB m)
+ENDIF ( MSVC )
 
 IF ( NOT GLUT_FOUND )
   IF ( MSVC )