Revision: 9657 https://osdn.net/projects/ttssh2/scm/svn/commits/9657 Author: nmaya Date: 2021-12-30 18:36:13 +0900 (Thu, 30 Dec 2021) Log Message: ----------- puttyversion.h を使用しなくなったので関連コードを削除 Merge from putty_0_76: r9644 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/9644 Modified Paths: -------------- branches/4-stable/ttssh2/ttxssh/CMakeLists.txt -------------- next part -------------- Modified: branches/4-stable/ttssh2/ttxssh/CMakeLists.txt =================================================================== --- branches/4-stable/ttssh2/ttxssh/CMakeLists.txt 2021-12-29 17:35:15 UTC (rev 9656) +++ branches/4-stable/ttssh2/ttxssh/CMakeLists.txt 2021-12-30 09:36:13 UTC (rev 9657) @@ -16,7 +16,6 @@ target_sources( ttxssh PRIVATE - ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h ../matcher/matcher.c arc4random.c arc4random.h @@ -170,30 +169,6 @@ crypt32.lib # TODO このlibを使用しないパッチを適応したら削除すること ) -### create puttyversion.h - -set(PUTTY_ISS "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss") -if(NOT EXISTS ${PUTTY_ISS}) - message(FATAL_ERROR "${PUTTY_ISS} not found") -endif() - -file(READ "${CMAKE_SOURCE_DIR}/libs/putty/windows/putty.iss" iis) - -string(REGEX MATCH "VersionInfoTextVersion=([^\n]+)\n" _ ${iis}) -set(version_str ${CMAKE_MATCH_1}) -if("${version_str}" STREQUAL "") - string(REGEX MATCH "AppVerName=([^\n]+)\n" _ ${iis}) - set(version_str ${CMAKE_MATCH_1}) -endif() -if("${version_str}" STREQUAL "") - set(version_str "unknown") -endif() -message("putty version=\"${version_str}\"") -FILE( - WRITE ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h - "#define PUTTYVERSION \"${version_str}\"\n" - ) - install( TARGETS ttxssh RUNTIME