Skip to content

Commit

Permalink
replace TARGET parameter with TGT for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus committed Nov 11, 2024
1 parent 7b27b6f commit 6e64ba3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmake/utils.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generates a version resource file from the `sentry.rc.in` template for the `TARGET` argument and adds it as a source.
function(sentry_add_version_resource TARGET FILE_DESCRIPTION)
# Generates a version resource file from the `sentry.rc.in` template for the `TGT` argument and adds it as a source.
function(sentry_add_version_resource TGT FILE_DESCRIPTION)
# generate a resource output-path from the target name
set(RESOURCE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.rc")
set(RESOURCE_PATH "${CMAKE_CURRENT_BINARY_DIR}/${TGT}.rc")
set(RESOURCE_PATH_TMP "${RESOURCE_PATH}.in")

# Extract major, minor and patch version from SENTRY_VERSION
Expand All @@ -17,5 +17,5 @@ function(sentry_add_version_resource TARGET FILE_DESCRIPTION)
file(GENERATE OUTPUT ${RESOURCE_PATH} INPUT ${RESOURCE_PATH_TMP})

# Finally add the generated resource file to the target sources
target_sources("${TARGET}" PRIVATE "${RESOURCE_PATH}")
target_sources("${TGT}" PRIVATE "${RESOURCE_PATH}")
endfunction()
2 changes: 1 addition & 1 deletion sentry.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BEGIN
VALUE "FileVersion", "@SENTRY_VERSION@"
VALUE "InternalName", "sentry-native"
VALUE "LegalCopyright", "https://sentry.io"
VALUE "OriginalFilename", "$<TARGET_FILE_NAME:@TARGET@>"
VALUE "OriginalFilename", "$<TARGET_FILE_NAME:@TGT@>"
VALUE "ProductName", "Sentry Native SDK"
VALUE "ProductVersion", "@SENTRY_VERSION@"
END
Expand Down

0 comments on commit 6e64ba3

Please sign in to comment.