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!)
This commit is contained in:
Vladimir Timofeev 2014-12-19 17:08:42 +03:00
parent 92584bbc7f
commit 69a7b0ac3a
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ cocos_find_package(CURL CURL REQUIRED)
## if(USE_PREBUILT_LIBS) ## if(USE_PREBUILT_LIBS)
add_subdirectory(external/flatbuffers) add_subdirectory(external/flatbuffers)
set(FLATBUFFERS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/external) set(FLATBUFFERS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/external)
set(FLATBUFFERS_LIBRARIES flatbuffers) # set(FLATBUFFERS_LIBRARIES flatbuffers)
## else() ## else()
## cocos_find_package(Flatbuffers REQUIRED FLATBUFFERS_LIBRARIES) ## cocos_find_package(Flatbuffers REQUIRED FLATBUFFERS_LIBRARIES)
## set(FLATBUFFERS_INCLUDE_DIRS ${FLATBUFFERS_INCLUDE_DIRS}) ## set(FLATBUFFERS_INCLUDE_DIRS ${FLATBUFFERS_INCLUDE_DIRS})