mirror of https://github.com/axmolengine/axmol.git
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:
parent
92584bbc7f
commit
69a7b0ac3a
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue