Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit 8a74e51

Browse files
committed
refactor: project declaration
1 parent 9513ba1 commit 8a74e51

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ if (POLICY CMP0141)
66
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
77
endif()
88

9-
project ("MyLibrary"
10-
VERSION 1.0
11-
DESCRIPTION "A simple CMake library.")
12-
9+
project ("MyLibrary")
10+
set(PROJECT_VERSION_MAJOR 1)
11+
set(PROJECT_VERSION_MINOR 0)
12+
set(PROJECT_VERSION_PATCH 0)
13+
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
14+
set(PROJECT_DESCRIPTION "A simple CMake library.")
1315
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
1416

1517
# Add build options to this project.

0 commit comments

Comments
 (0)