[ttssh2-commit] [9876] cmakeビルド時cygwinフォルダ内のビルド方法を変更

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 4月 21日 (木) 22:40:34 JST


Revision: 9876
          https://osdn.net/projects/ttssh2/scm/svn/commits/9876
Author:   zmatsuo
Date:     2022-04-21 22:40:34 +0900 (Thu, 21 Apr 2022)
Log Message:
-----------
cmakeビルド時cygwinフォルダ内のビルド方法を変更

- linuxホスト時はcygwinフォルダのターゲットは生成しない
- 32bitでビルドしているとき、cygtoolはそのままビルドする
  - 64bitビルド時は、cygtool_build経由で32bitのcygtoolをビルドする

Modified Paths:
--------------
    trunk/cygwin/CMakeLists.txt

-------------- next part --------------
Modified: trunk/cygwin/CMakeLists.txt
===================================================================
--- trunk/cygwin/CMakeLists.txt	2022-04-21 13:40:25 UTC (rev 9875)
+++ trunk/cygwin/CMakeLists.txt	2022-04-21 13:40:34 UTC (rev 9876)
@@ -3,13 +3,18 @@
   cyglaunch
   PROPERTIES FOLDER cygwin)
 
+if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
+  # linux上ではcygwin関連はビルドしない
+  return()
+endif()
+
 add_subdirectory(cyglib)
 set_target_properties(
   cyglib
   PROPERTIES FOLDER cygwin)
 
-if(MSVC AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
-  # Visual Studio 32bit build
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
+  # 32bit build
   add_subdirectory(cygtool)
 
   set_target_properties(


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