diff options
author | louyl <louyl@fenbi.com> | 2018-12-10 17:20:07 +0800 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2018-12-10 08:35:09 -0500 |
commit | 9c3d2d6c0ac6805fdb52cff582067a9cb6863caf (patch) | |
tree | dadb22c3cebaf104319baa7792669ef15f78d37b | |
parent | 208a048dc440036bd5304a6fd16e32fda33b4600 (diff) | |
download | thrift-9c3d2d6c0ac6805fdb52cff582067a9cb6863caf.tar.gz |
Fix build compiler with cmake
-rw-r--r-- | compiler/cpp/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/CMakeLists.txt b/compiler/cpp/CMakeLists.txt index e61887704..0df790ee2 100644 --- a/compiler/cpp/CMakeLists.txt +++ b/compiler/cpp/CMakeLists.txt @@ -113,7 +113,7 @@ THRIFT_ADD_COMPILER(xml "Enable compiler for XML" ON) # we also add the current binary directory for generated files include_directories(${CMAKE_CURRENT_BINARY_DIR} src) -if(NOT ${WITH_PLUGIN}) +if(NOT DEFINED WITH_PLUGIN OR NOT ${WITH_PLUGIN}) list(APPEND thrift-compiler_SOURCES ${compiler_core}) endif() |