Skip to content

Commit 26c9e2b

Browse files
committed
Fix version qualifier setting in cmake
(cherry picked from commit 61edba4) # Conflicts: # CMakeLists.txt
1 parent d13e681 commit 26c9e2b

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)