summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouyl <louyl@fenbi.com>2018-12-10 17:20:07 +0800
committerJames E. King III <jking@apache.org>2018-12-10 08:35:09 -0500
commit9c3d2d6c0ac6805fdb52cff582067a9cb6863caf (patch)
treedadb22c3cebaf104319baa7792669ef15f78d37b
parent208a048dc440036bd5304a6fd16e32fda33b4600 (diff)
downloadthrift-9c3d2d6c0ac6805fdb52cff582067a9cb6863caf.tar.gz
Fix build compiler with cmake
-rw-r--r--compiler/cpp/CMakeLists.txt2
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()