File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,16 @@ endif(COMMAND cmake_policy)
33
33
set (ALLEGRO_PROJECT_SUFFIX "" CACHE STRING "Project suffix" )
34
34
set (ALLEGRO_PROJECT_NAME "ALLEGRO" CACHE STRING "Project default name" )
35
35
36
- project (${ALLEGRO_PROJECT_NAME}${ALLEGRO_PROJECT_SUFFIX} C CXX)
36
+ set (ALLEGRO_VERSION 5.2.9)
37
+
38
+ project (${ALLEGRO_PROJECT_NAME}${ALLEGRO_PROJECT_SUFFIX}
39
+ VERSION ${ALLEGRO_VERSION}
40
+ LANGUAGES C CXX
41
+ DESCRIPTION "Allegro project"
42
+ HOMEPAGE_URL "https://github.com/liballeg/allegro5"
43
+ )
44
+
45
+ set (ALLEGRO_SOVERSION ${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} )
37
46
38
47
if (NOT CMAKE_BUILD_TYPE )
39
48
set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
@@ -51,9 +60,6 @@ endif(ANDROID)
51
60
option (ALLEGRO_SDL "Build using the SDL backend (experimental)" OFF )
52
61
option (WANT_STATIC_RUNTIME "Whether or not to link the C and C++ runtimes statically (currently only implemented on Windows)" OFF )
53
62
54
- set (ALLEGRO_VERSION 5.2.9)
55
- string (REGEX MATCH "^[0-9]+[.][0-9]+" ALLEGRO_SOVERSION ${ALLEGRO_VERSION} )
56
-
57
63
# Search in the `cmake' directory for additional CMake modules.
58
64
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake)
59
65
You can’t perform that action at this time.
0 commit comments