Use the build output flatc to compile test schemas by default.

This commit is contained in:
Xiaolei Yu 2016-05-01 11:15:53 +08:00
parent 77742a3fba
commit 3a8bc309e2
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ endif()
if(FLATBUFFERS_BUILD_FLATC)
add_executable(flatc ${FlatBuffers_Compiler_SRCS})
if(NOT FLATBUFFERS_FLATC_EXECUTABLE)
set(FLATBUFFERS_FLATC_EXECUTABLE $<TARGET_FILE:flatc>)
endif()
endif()
if(FLATBUFFERS_BUILD_FLATHASH)