We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0369e2f commit 9e2eb46Copy full SHA for 9e2eb46
cmake/Modules/FindThrift.cmake
@@ -34,7 +34,11 @@ FIND_LIBRARY(THRIFT_LIBRARIES
34
)
35
36
# Get the thrift binary to build our files during cmake
37
-FIND_PROGRAM(THRIFT_BIN thrift)
+if (CMAKE_CROSSCOMPILING)
38
+ FIND_PROGRAM(THRIFT_BIN thrift NO_CMAKE_FIND_ROOT_PATH)
39
+else (CMAKE_CROSSCOMPILING)
40
+ FIND_PROGRAM(THRIFT_BIN thrift)
41
+endif(CMAKE_CROSSCOMPILING)
42
43
# Use binary to get version string and test against THRIFT_REQ_VERSION
44
EXECUTE_PROCESS(
0 commit comments