From 3a8bc309e2ded37707d2f64935e3a8e14e3bf3db Mon Sep 17 00:00:00 2001 From: Xiaolei Yu Date: Sun, 1 May 2016 11:15:53 +0800 Subject: [PATCH] Use the build output flatc to compile test schemas by default. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 47a66e6cc..b1e56d6b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,9 @@ endif() if(FLATBUFFERS_BUILD_FLATC) add_executable(flatc ${FlatBuffers_Compiler_SRCS}) + if(NOT FLATBUFFERS_FLATC_EXECUTABLE) + set(FLATBUFFERS_FLATC_EXECUTABLE $) + endif() endif() if(FLATBUFFERS_BUILD_FLATHASH)