From 69a7b0ac3aa5471086f408a1ac32d879290cb8d3 Mon Sep 17 00:00:00 2001 From: Vladimir Timofeev Date: Fri, 19 Dec 2014 17:08:42 +0300 Subject: [PATCH] Why we ever linking with flatbuffers compiler library??? On windows mingw platform all executables as a result will be flatc command line utils ((( Because flatbuffers target contains "main" function... Fix it by not set FLATBUFFERS_LIBRARIES at all (because it header-only library!) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56453252a2..217304f981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,7 +265,7 @@ cocos_find_package(CURL CURL REQUIRED) ## if(USE_PREBUILT_LIBS) add_subdirectory(external/flatbuffers) set(FLATBUFFERS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/external) - set(FLATBUFFERS_LIBRARIES flatbuffers) + # set(FLATBUFFERS_LIBRARIES flatbuffers) ## else() ## cocos_find_package(Flatbuffers REQUIRED FLATBUFFERS_LIBRARIES) ## set(FLATBUFFERS_INCLUDE_DIRS ${FLATBUFFERS_INCLUDE_DIRS})