[Ttssh2-commit] [9327] cmakeビルド時VS2008でエラーが出ないよう修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 6月 30日 (水) 22:36:59 JST


Revision: 9327
          https://osdn.net/projects/ttssh2/scm/svn/commits/9327
Author:   zmatsuo
Date:     2021-06-30 22:36:59 +0900 (Wed, 30 Jun 2021)
Log Message:
-----------
cmakeビルド時VS2008でエラーが出ないよう修正

Modified Paths:
--------------
    trunk/ttssh2/argon2/CMakeLists.txt

-------------- next part --------------
Modified: trunk/ttssh2/argon2/CMakeLists.txt
===================================================================
--- trunk/ttssh2/argon2/CMakeLists.txt	2021-06-30 13:36:44 UTC (rev 9326)
+++ trunk/ttssh2/argon2/CMakeLists.txt	2021-06-30 13:36:59 UTC (rev 9327)
@@ -22,7 +22,8 @@
   ../../libs/argon2/src/thread.h
   )
 
-if(${CMAKE_GENERATOR} MATCHES "Visual Studio 8 2005")
+if(MSVC AND (MSVC_VERSION LESS_EQUAL 1500))
+  # Visual Studio 2005, 2008  (1500=VS2008)
   target_sources(
     ${PACKAGE_NAME}
     PRIVATE


Ttssh2-commit メーリングリストの案内
Back to archive index