fix Linux glfw linker error on v3

This commit is contained in:
andyque 2015-03-05 16:34:51 +08:00
parent e792b6aa9a
commit a229793e31
1 changed files with 5 additions and 1 deletions

View File

@ -129,7 +129,11 @@ foreach(pkg ZLIB MINIZIP JPEG PNG TIFF TinyXML2 FREETYPE WEBSOCKETS CURL FLATBUF
cocos_use_pkg(cocos2d ${pkg}) cocos_use_pkg(cocos2d ${pkg})
endforeach() endforeach()
target_link_libraries(cocos2d ${PLATFORM_SPECIFIC_LIBS}) if(LINUX)
set(glfw_other_linker_flags X11)
if(LINUX)
target_link_libraries(cocos2d ${PLATFORM_SPECIFIC_LIBS} ${glfw_other_linker_flags})
if(USE_WEBP) if(USE_WEBP)
add_definitions(-DCC_USE_WEBP=1) add_definitions(-DCC_USE_WEBP=1)