Skip to content

Commit

Permalink
Update F3D version to 2.0.0-RC1 (#733)
Browse files Browse the repository at this point in the history
* Update F3D version to 2.0.0-RC1
  • Loading branch information
mwestphal authored Apr 19, 2023
1 parent 065ee73 commit 389e394
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib${output_postfix}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib${output_postfix}")

project(F3D
VERSION "1.3.1"
VERSION 2.0.0
DESCRIPTION "F3D - A fast and minimalist 3D viewer"
LANGUAGES C CXX)
set(F3D_PROJECT_VERSION_SUFFIX "-RC1")
set(F3D_VERSION ${PROJECT_VERSION}${F3D_PROJECT_VERSION_SUFFIX})

string(TIMESTAMP F3D_BUILD_DATE "%Y-%m-%d %H:%M:%S" UTC)

Expand Down
6 changes: 3 additions & 3 deletions application/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ if(F3D_MACOS_BUNDLE)
set(MACOSX_BUNDLE_EXECUTABLE_NAME ${PROJECT_NAME})
set(MACOSX_BUNDLE_INFO_STRING ${PROJECT_DESCRIPTION})
set(MACOSX_BUNDLE_GUI_IDENTIFIER "app.f3d.F3D")
set(MACOSX_BUNDLE_LONG_VERSION_STRING ${PROJECT_VERSION})
set(MACOSX_BUNDLE_LONG_VERSION_STRING ${F3D_VERSION})
set(MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME})
set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION})
set(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION})
set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${F3D_VERSION})
set(MACOSX_BUNDLE_BUNDLE_VERSION ${F3D_VERSION})
set(MACOSX_BUNDLE_COPYRIGHT "Michael Migliore, Mathieu Westphal")

# Generate MacOS bundle
Expand Down
2 changes: 1 addition & 1 deletion application/F3DConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace F3D
{
const std::string AppName = "@PROJECT_NAME@";
const std::string AppTitle = "@PROJECT_DESCRIPTION@";
const std::string AppVersion = "@PROJECT_VERSION@";
const std::string AppVersion = "@F3D_VERSION@";
}

#cmakedefine01 F3D_MACOS_BUNDLE
Expand Down
3 changes: 3 additions & 0 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ if(BUILD_SHARED_LIBS)
configure_package_config_file(
"${CMAKE_SOURCE_DIR}/cmake/f3dConfig.cmake.in" "${CMAKE_BINARY_DIR}/cmake/f3dConfig.cmake"
INSTALL_DESTINATION "lib/cmake/f3d")

# Write PROJECT_VERSION instead of F3D_VERSION to avoid any potential issues with version comparison
# because of the potential suffix
write_basic_package_version_file(
"${CMAKE_BINARY_DIR}/cmake/f3dConfigVersion.cmake"
VERSION "${PROJECT_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion library/src/config.cxx.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace f3d::detail
{
const std::string LibVersion = "@PROJECT_VERSION@"; // Version is synchronized with F3D
const std::string LibVersion = "@F3D_VERSION@"; // Version is synchronized with F3D
const std::string LibBuildSystem = "@CMAKE_SYSTEM_NAME@ @F3D_SYSTEM_PROCESSOR@";
const std::string LibBuildDate = "@F3D_BUILD_DATE@";
const std::string LibCompiler = "@CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@";
Expand Down

0 comments on commit 389e394

Please sign in to comment.