浏览代码

ENH: make sure cmake can be built with an older version of cmake

Bill Hoffman 19 年之前
父节点
当前提交
0adee1e6dd
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Source/CMakeLists.txt

+ 1 - 2
Source/CMakeLists.txt

@@ -222,8 +222,7 @@ ENDIF(UNIX)
 
 # On Apple we need Carbon
 IF(APPLE)
-  FIND_LIBRARY(CARBON Carbon)
-  TARGET_LINK_LIBRARIES(CMakeLib ${CARBON})
+  TARGET_LINK_LIBRARIES(CMakeLib -framework Carbon)
 ENDIF(APPLE)
 
 # On some platforms we need the rpcrt4 library for the VS 7 generators.