From 11da87e6f30c237869a09e28ab44fe4a59db270e Mon Sep 17 00:00:00 2001 From: Nobuaki Sukegawa Date: Sat, 10 Sep 2016 14:02:19 +0900 Subject: THRIFT-2835 Add possibility to distribute generators separately from thrift core, and load them dynamically Client: Compiler Patch: Nobuaki Sukegawa, rebased by dtmuller Also fixed by dtmuller: * Add plugin namespace for erlang language binding * Fix unit test test_const_value * Don't clear type cache with every t_program conversion * Type "wb" may not be supported by popen on non-Windows platforms * Fix constness of AST type signatures --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 37e89766f..93ed8d2ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,9 @@ if(BUILD_COMPILER) set(THRIFT_COMPILER $) endif() add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/compiler/cpp) +elseif(EXISTS ${THRIFT_COMPILER}) + add_executable(thrift-compiler IMPORTED) + set_property(TARGET thrift-compiler PROPERTY IMPORTED_LOCATION ${THRIFT_COMPILER}) endif() if(BUILD_CPP) -- cgit v1.2.1