Skip to content

Commit

Permalink
Why we ever linking with flatbuffers compiler library???
Browse files Browse the repository at this point in the history
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!)
  • Loading branch information
vovkasm committed Dec 20, 2014
1 parent 92584bb commit 69a7b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 69a7b0a

Please sign in to comment.