Skip to content

Commit

Permalink
Improve Thrift CMake modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pschlan committed Feb 5, 2023
1 parent a443f90 commit 96995fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMake/Modules/FindLibThrift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBTHRIFT REQUIRED thrift)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(libthrift DEFAULT_MSG LIBTHRIFT_LIBRARIES LIBTHRIFT_INCLUDE_DIRS LIBTHRIFT_LIBDIR)
mark_as_advanced(LIBTHRIFT_INCLUDE_DIRS LIBTHRIFT_LIBRARIES LIBTHRIFT_LIBDIR)
find_package_handle_standard_args(LibThrift DEFAULT_MSG LIBTHRIFT_LIBRARIES LIBTHRIFT_INCLUDEDIR LIBTHRIFT_LIBDIR)
mark_as_advanced(LIBTHRIFT_INCLUDEDIR LIBTHRIFT_LIBRARIES LIBTHRIFT_LIBDIR)
2 changes: 1 addition & 1 deletion CMake/Modules/FindThriftCompiler.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
find_program(THRIFT_COMPILER NAMES thrift)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(thrift DEFAULT_MSG THRIFT_COMPILER)
find_package_handle_standard_args(ThriftCompiler DEFAULT_MSG THRIFT_COMPILER)
mark_as_advanced(THRIFT_COMPILER)

macro(thrift_compile FILENAME GENERATOR OUTPUTDIR)
Expand Down

0 comments on commit 96995fe

Please sign in to comment.