2020-02-20 17:06:35 +01:00
|
|
|
|
2020-08-11 14:09:22 +02:00
|
|
|
Add some library versioning.
|
2020-02-20 17:06:35 +01:00
|
|
|
|
|
|
|
---
|
2020-08-11 14:09:22 +02:00
|
|
|
CMakeLists.txt | 6 ++----
|
|
|
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
2020-02-20 17:06:35 +01:00
|
|
|
|
2020-08-11 14:09:22 +02:00
|
|
|
Index: SDL_bgi-2.4.1/CMakeLists.txt
|
2020-02-20 17:06:35 +01:00
|
|
|
===================================================================
|
2020-08-11 14:09:22 +02:00
|
|
|
--- SDL_bgi-2.4.1.orig/CMakeLists.txt
|
|
|
|
+++ SDL_bgi-2.4.1/CMakeLists.txt
|
|
|
|
@@ -21,9 +21,6 @@ include_directories (SDL_bgi ${SDL2_INCL
|
2020-02-20 17:06:35 +01:00
|
|
|
# Default install directory variables
|
|
|
|
include (GNUInstallDirs)
|
|
|
|
|
|
|
|
-# fix stupid bug on Linux
|
|
|
|
-string (STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
|
|
|
|
-
|
|
|
|
# Find source files
|
|
|
|
file (GLOB SOURCES src/*.c)
|
|
|
|
|
2020-08-11 14:09:22 +02:00
|
|
|
@@ -32,8 +29,9 @@ include_directories (src)
|
2020-02-20 17:06:35 +01:00
|
|
|
|
|
|
|
# Create shared library
|
|
|
|
add_library (${PROJECT_NAME} SHARED ${SOURCES})
|
2022-02-13 23:28:57 +01:00
|
|
|
+set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION suse7)
|
2020-08-11 14:09:22 +02:00
|
|
|
# fix provided by Austin Hurst
|
|
|
|
-target_link_libraries (SDL_bgi ${SDL2_LIBRARIES})
|
|
|
|
+target_link_libraries (SDL_bgi -lm ${SDL2_LIBRARIES})
|
2020-02-20 17:06:35 +01:00
|
|
|
|
|
|
|
# Install library
|
|
|
|
install (TARGETS ${PROJECT_NAME}
|