mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Use SYSTEM flag for bundled format if supported
This prevents us ever seeing any warnings related to fmt's code when compiling SOCI.
This commit is contained in:
@@ -149,7 +149,10 @@ if(soci_use_bundled_fmt)
|
||||
endif()
|
||||
|
||||
set(FMT_INSTALL ${SOCI_INSTALL})
|
||||
add_subdirectory(3rdparty/fmt)
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.25)
|
||||
set(SYSTEM_FLAG "SYSTEM")
|
||||
endif()
|
||||
add_subdirectory(3rdparty/fmt ${SYSTEM_FLAG})
|
||||
endif()
|
||||
|
||||
# Helper function appending prefix and suffix to the library name.
|
||||
|
||||
Reference in New Issue
Block a user