소스 검색

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.