Skip to content

Commit

Permalink
fix: build-type for source-archives
Browse files Browse the repository at this point in the history
  • Loading branch information
jahnf committed Oct 17, 2023
1 parent 7e0e2cc commit e95c076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/modules/GitVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ function(add_version_info_custom_prefix target prefix directory)
include(ArchiveVersionInfo_${prefix} OPTIONAL RESULT_VARIABLE ARCHIVE_VERSION_PRESENT)
if(ARCHIVE_VERSION_PRESENT AND ${prefix}_VERSION_SUCCESS)
message(STATUS "Info: Version information from archive file.")
set(${prefix}_VERSION_BUILDTYPE "${CMAKE_BUILD_TYPE}")
set(${prefix}_VERSION_BUILDTYPE "${CMAKE_BUILD_TYPE}" PARENT_SCOPE)
else()
get_version_info(${prefix} "${directory}")
if("${${prefix}_VERSION_FULLHASH}" STREQUAL "unknown"
Expand Down

0 comments on commit e95c076

Please sign in to comment.