From 9c3d2d6c0ac6805fdb52cff582067a9cb6863caf Mon Sep 17 00:00:00 2001 From: louyl Date: Mon, 10 Dec 2018 17:20:07 +0800 Subject: [PATCH] Fix build compiler with cmake --- compiler/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()