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)