Skip to content

Commit

Permalink
Fixed thrift_generate
Browse files Browse the repository at this point in the history
  • Loading branch information
lukalt committed Nov 4, 2024
1 parent 1a4021c commit ee52a02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ThriftLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ macro(thrift_generate
)
cmake_parse_arguments(THRIFT_GENERATE # Prefix
"" # Options
"source_file_name" # One Value args
"TARGET_NAME_BASE" # Multi-value args
"TARGET_NAME_BASE" # One Value args
"THRIFT_INCLUDE_DIRECTORIES" # Multi-value args
"${ARGN}")

set(source_file_name ${file_name})
Expand All @@ -210,8 +210,8 @@ macro(thrift_generate
foreach(dir ${THRIFT_GENERATE_THRIFT_INCLUDE_DIRECTORIES})
list(APPEND thrift_include_directories "-I" "${dir}")
endforeach()
if(DEFINED TARGET_NAME_BASE AND NOT TARGET_NAME_BASE STREQUAL "")
set(target_file_name ${TARGET_NAME_BASE})
if(DEFINED THRIFT_GENERATE_TARGET_NAME_BASE AND NOT THRIFT_GENERATE_TARGET_NAME_BASE STREQUAL "")
set(target_file_name ${THRIFT_GENERATE_TARGET_NAME_BASE})
endif()

set("${target_file_name}-${language}-HEADERS"
Expand Down

0 comments on commit ee52a02

Please sign in to comment.