commit | 9c3d2d6c0ac6805fdb52cff582067a9cb6863caf | [log] [tgz] |
---|---|---|
author | louyl <louyl@fenbi.com> | Mon Dec 10 17:20:07 2018 +0800 |
committer | James E. King III <jking@apache.org> | Mon Dec 10 08:35:09 2018 -0500 |
tree | dadb22c3cebaf104319baa7792669ef15f78d37b | |
parent | 208a048dc440036bd5304a6fd16e32fda33b4600 [diff] |
Fix build compiler with cmake
diff --git a/compiler/cpp/CMakeLists.txt b/compiler/cpp/CMakeLists.txt index e618877..0df790e 100644 --- a/compiler/cpp/CMakeLists.txt +++ b/compiler/cpp/CMakeLists.txt
@@ -113,7 +113,7 @@ # 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()