Skip to content

Commit b2cf2c2

Browse files
Merge pull request #36 from tarantool/fix-tarantool-lookup-module
Allow cmake to grab tarantool dir from its variable
2 parents 6fd3088 + ae33303 commit b2cf2c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/FindTarantool.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ macro(extract_definition name output input)
99
endmacro()
1010

1111
find_path(TARANTOOL_INCLUDE_DIR tarantool/module.h
12-
HINTS ENV TARANTOOL_DIR /usr/local/include
13-
)
12+
HINTS ${TARANTOOL_DIR} ENV TARANTOOL_DIR
13+
PATH_SUFFIXES include
14+
)
1415

1516
if(TARANTOOL_INCLUDE_DIR)
1617
set(_config "-")

0 commit comments

Comments
 (0)