Revision: 9653 https://osdn.net/projects/ttssh2/scm/svn/commits/9653 Author: zmatsuo Date: 2021-12-30 02:01:27 +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: -------------- trunk/ttssh2/ttxssh/CMakeLists.txt -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/CMakeLists.txt =================================================================== --- trunk/ttssh2/ttxssh/CMakeLists.txt 2021-12-29 15:58:28 UTC (rev 9652) +++ trunk/ttssh2/ttxssh/CMakeLists.txt 2021-12-29 17:01:27 UTC (rev 9653) @@ -12,7 +12,6 @@ target_sources( ${PACKAGE_NAME} PRIVATE - ${CMAKE_CURRENT_BINARY_DIR}/puttyversion.h ../matcher/matcher.c arc4random.c arc4random.h @@ -211,38 +210,8 @@ 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 DESTINATION . ) - -#### -# ソースツリー内に生成ファイルが存在していたら削除する -if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ttssh2/ttxssh/puttyversion.h") - file(REMOVE "${CMAKE_CURRENT_SOURCE_DIR}/ttssh2/ttxssh/puttyversion.h") -endif()