From eec3f7f79a6813c1ea2d5c79675735c35ed66d5c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 16 Apr 2022 18:10:10 +0300 Subject: [PATCH] cmake: set os2 dll name to 'physfs' not libphysfs, because of os2 limitation. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a435c3b..d0356cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,6 +180,9 @@ if(PHYSFS_BUILD_SHARED) if(WINRT) set_target_properties(physfs PROPERTIES VS_WINRT_COMPONENT True) endif() + if(OS2) # OS/2 does not support a DLL name longer than 8 characters. + set_target_properties(physfs PROPERTIES OUTPUT_NAME "physfs") + endif() target_link_libraries(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS}) set(PHYSFS_LIB_TARGET physfs) set(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")