Revision: 9458 https://osdn.net/projects/ttssh2/scm/svn/commits/9458 Author: zmatsuo Date: 2021-09-26 01:18:46 +0900 (Sun, 26 Sep 2021) Log Message: ----------- cmake のバージョン制限を下げた - 3.13 から 3.11 に変更 - Visual Studio 2005 をサポートしている cmake の最終バージョンは 3.11.4 Modified Paths: -------------- trunk/installer/cygtool/CMakeLists.txt -------------- next part -------------- Modified: trunk/installer/cygtool/CMakeLists.txt =================================================================== --- trunk/installer/cygtool/CMakeLists.txt 2021-09-24 17:37:59 UTC (rev 9457) +++ trunk/installer/cygtool/CMakeLists.txt 2021-09-25 16:18:46 UTC (rev 9458) @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.11) set(PACKAGE_NAME "cygtool_dll") @@ -12,11 +12,15 @@ if(MINGW) # libgcc_s_dw2-1.dll に依存しないため - target_link_options( - ${PACKAGE_NAME} - PRIVATE - -static-libgcc - ) + if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0") + target_link_options( + ${PACKAGE_NAME} + PRIVATE + -static-libgcc + ) + else() + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc") + endif() endif() if(SUPPORT_OLD_WINDOWS)