Skip to content

Commit

Permalink
Fixed init cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Sep 14, 2021
1 parent 931a3e8 commit 1a0a9fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(_COPYRIGHT_HOLDERS "\"The %s developers\"")
set(_COPYRIGHT_HOLDERS_SUBSTITUTION "\"Pocketnet\"")
set(_HOMEPAGE "\"https://github.com/pocketnetteam/\"")
include(init.cmake)
init("Pocketnet Core" "\"${_CLIENT_VERSION_MAJOR}.${_CLIENT_VERSION_MINOR}.${_CLIENT_VERSION_REVISION}\"" "\"https://github.com/pocketnetteam/pocketnet.core/issues\"" "\"pocketnetcore\"" "\"${_HOMEPAGE}\"")
init("\"Pocketnet Core\"" "\"${_CLIENT_VERSION_MAJOR}.${_CLIENT_VERSION_MINOR}.${_CLIENT_VERSION_REVISION}\"" "\"https://github.com/pocketnetteam/pocketnet.core/issues\"" "\"pocketnetcore\"" "${_HOMEPAGE}")
add_compile_definitions(CLIENT_VERSION_MAJOR=${_CLIENT_VERSION_MAJOR}
CLIENT_VERSION_MINOR=${_CLIENT_VERSION_MINOR}
CLIENT_VERSION_REVISION=${_CLIENT_VERSION_REVISION}
Expand Down
2 changes: 1 addition & 1 deletion init.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

function(init package version bug_report tarname url)
message(STATUS ${package} ${version} ${bug_report})
add_compile_definitions(PACKAGE_NAME="${package}" PACKAGE_VERSION="${version}" PACKAGE_BUGREPORT="${bug_report}" PACKAGE_TARNAME="${tarname}" PACKAGE_URL="${url}")
add_compile_definitions(PACKAGE_NAME=${package} PACKAGE_VERSION=${version} PACKAGE_BUGREPORT=${bug_report} PACKAGE_TARNAME=${tarname} PACKAGE_URL=${url})
endfunction()

0 comments on commit 1a0a9fc

Please sign in to comment.