Skip to content

Commit b76aca3

Browse files
authored
Merge pull request #339 from elastic/backport/9.0/pr-337
Fix version qualifier setting in cmake
2 parents d13e681 + 26c9e2b commit b76aca3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CMakeLists.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ set(DRIVER_BASE_NAME elasticodbc CACHE STRING
1212

1313
# driver's version
1414
set(DRV_VERSION 9.0.0)
15-
set(VERSION_QUALIFIER -$ENV{VERSION_QUALIFIER} CACHE STRING
16-
"Extra string to append to the install directory name")
15+
if(DEFINED ENV{VERSION_QUALIFIER})
16+
set(VERSION_QUALIFIER -$ENV{VERSION_QUALIFIER} CACHE STRING
17+
"Extra string to append to the install directory name")
18+
else()
19+
set(VERSION_QUALIFIER "" CACHE STRING
20+
"Extra string to append to the install directory name")
21+
endif()
1722

1823
# build a UNICODE driver? (the only supported way currently)
1924
set(IS_UNICODE 1)

0 commit comments

Comments
 (0)