summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Emmenlauer <mario@emmenlauer.de>2020-05-11 20:45:42 +0200
committerJens Geyer <jensg@apache.org>2020-06-02 13:55:03 +0200
commitfa770f61e9fd26af6bd6f0f2f4c3f7815523d0d8 (patch)
treede15459a8e60ffc1291fc982f21a279d9aa4b442
parent68f2194dfa3150526445d37afd80ededb7bb4585 (diff)
downloadthrift-fa770f61e9fd26af6bd6f0f2f4c3f7815523d0d8.tar.gz
Use correct platform executable suffix for thrift compiler
Patch: Mario Emmenlauer This closes #2139
-rw-r--r--build/cmake/ThriftConfig.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cmake/ThriftConfig.cmake.in b/build/cmake/ThriftConfig.cmake.in
index 3fb208f5c..6bfb12c70 100644
--- a/build/cmake/ThriftConfig.cmake.in
+++ b/build/cmake/ThriftConfig.cmake.in
@@ -24,7 +24,7 @@ set(THRIFT_VERSION @thrift_VERSION@)
set_and_check(THRIFT_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(THRIFT_CMAKE_DIR "@PACKAGE_CMAKE_INSTALL_DIR@")
set_and_check(THRIFT_BIN_DIR "@PACKAGE_BIN_INSTALL_DIR@")
-set(THRIFT_COMPILER "${THRIFT_BIN_DIR}/thrift")
+set(THRIFT_COMPILER "${THRIFT_BIN_DIR}/thrift@CMAKE_EXECUTABLE_SUFFIX@")
if (NOT TARGET thrift::thrift)
include("${THRIFT_CMAKE_DIR}/thriftTargets.cmake")