Set UnRAR interface library to build using C++11

Because it includes rar.hpp, the UnRAR iface also uses C++11 features.
This commit is contained in:
Micah Snyder 2023-08-25 09:47:44 -07:00 committed by Micah Snyder
parent 0d5231f539
commit 349119aa1e
2 changed files with 9 additions and 4 deletions

View file

@ -68,7 +68,7 @@ endif()
if(ENABLE_SHARED_LIB)
# The unrar shared library.
add_library( clamunrar SHARED )
set_target_properties(clamunrar PROPERTIES
set_target_properties( clamunrar PROPERTIES
VERSION ${LIBCLAMAV_VERSION}
SOVERSION ${LIBCLAMAV_SOVERSION}
CXX_STANDARD 11
@ -115,7 +115,7 @@ endif()
if(ENABLE_STATIC_LIB)
# The clamunrar static library.
add_library( clamunrar_static STATIC)
set_target_properties(clamunrar_static PROPERTIES
set_target_properties( clamunrar_static PROPERTIES
CXX_STANDARD 11
)
target_sources( clamunrar_static

View file

@ -34,9 +34,11 @@ if(ENABLE_UNRAR)
if(ENABLE_SHARED_LIB)
# The clamunrar_iface SHARED library.
add_library( clamunrar_iface SHARED )
set_target_properties(clamunrar_iface PROPERTIES
set_target_properties( clamunrar_iface PROPERTIES
VERSION ${LIBCLAMAV_VERSION}
SOVERSION ${LIBCLAMAV_SOVERSION})
SOVERSION ${LIBCLAMAV_SOVERSION}
CXX_STANDARD 11
)
target_sources( clamunrar_iface
PRIVATE
@ -86,6 +88,9 @@ if(ENABLE_UNRAR)
if(ENABLE_STATIC_LIB)
# The clamunrar_iface static library.
add_library( clamunrar_iface_static STATIC)
set_target_properties( clamunrar_iface_static PROPERTIES
CXX_STANDARD 11
)
target_sources( clamunrar_iface_static
PRIVATE