Fix build compiler with cmake

This commit is contained in:
louyl 2018-12-10 17:20:07 +08:00 committed by James E. King III
parent 208a048dc4
commit 9c3d2d6c0a

View File

@ -113,7 +113,7 @@ THRIFT_ADD_COMPILER(xml "Enable compiler for XML" ON)
# we also add the current binary directory for generated files # we also add the current binary directory for generated files
include_directories(${CMAKE_CURRENT_BINARY_DIR} src) 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}) list(APPEND thrift-compiler_SOURCES ${compiler_core})
endif() endif()