Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > 89cfa64e1b4635e06e27e56236d562ca > files > 4

pioneerspacesim-20240314-1.mga10.src.rpm

From: Adam Mizerski <adam@mizerski.pl>
Date: 2021-02-04T01:03:27+01:00
Subject: use system fmt
Upstream: no

By default it's built from bundled source as shared library and not installed.

Index: pioneer-20240314/CMakeLists.txt
===================================================================
--- pioneer-20240314.orig/CMakeLists.txt
+++ pioneer-20240314/CMakeLists.txt
@@ -259,7 +259,7 @@ find_package(Freetype REQUIRED)
 find_package(OpenGL REQUIRED)
 
 add_subdirectory(contrib/lz4)
-add_subdirectory(contrib/fmt)
+find_package(fmt REQUIRED)
 
 set(NANOSOCKETS_STATIC "1")
 add_subdirectory(contrib/nanosockets)
@@ -271,7 +271,6 @@ include_directories(
 	${PIONEER_SRC}
 	${PIONEER_CONTRIB}
 	${PIONEER_CONTRIB}/doctest
-	${PIONEER_CONTRIB}/fmt/include
 	${ASSIMP_INCLUDE_DIRS}
 	${FREETYPE_INCLUDE_DIRS}
 	${OPENGL_INCLUDE_DIRS}
@@ -361,7 +360,7 @@ if (PYTHON)
 		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
 endif()
 
-target_link_libraries(pioneer-lib PUBLIC lz4 fmt::fmt)
+target_link_libraries(pioneer-lib PUBLIC lz4 fmt)
 
 list(APPEND pioneerLibs
 	pioneer-core