2014-02-07 51 views
0

我试图在osx中​​为GLFW生成共享库。当我在Cmake GUI上设置BUILD_SHARED_LIBS值时显示此错误:如何配置cmake来构建共享库?

Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Using Cocoa for window creation 
Using NSGL for context creation 
Building GLFW only for the native architecture 
Configuring done 
CMake Warning (dev) in src/CMakeLists.txt: 
    Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link 
    interface. Run "cmake --help-policy CMP0022" for policy details. Use the 
    cmake_policy command to set the policy and suppress this warning. 

    Target "glfw" has an INTERFACE_LINK_LIBRARIES property which differs from 
    its LINK_INTERFACE_LIBRARIES properties. 

    INTERFACE_LINK_LIBRARIES: 

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Cocoa.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOKit.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreFoundation.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreVideo.framework 

    LINK_INTERFACE_LIBRARIES: 



This warning is for project developers. Use -Wno-dev to suppress it. 

回答

1

这是一个警告,不是错误。这是GLFW开发者的警告,不适合你。