[ttssh2-commit] [10053] cmakeビルド時、libs/ビルド時にopensslをビルドしないようにした

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 7月 14日 (木) 00:26:44 JST


Revision: 10053
          https://osdn.net/projects/ttssh2/scm/svn/commits/10053
Author:   zmatsuo
Date:     2022-07-14 00:26:44 +0900 (Thu, 14 Jul 2022)
Log Message:
-----------
cmakeビルド時、libs/ビルド時にopensslをビルドしないようにした

Modified Paths:
--------------
    trunk/libs/buildall.cmake

-------------- next part --------------
Modified: trunk/libs/buildall.cmake
===================================================================
--- trunk/libs/buildall.cmake	2022-07-13 15:26:34 UTC (rev 10052)
+++ trunk/libs/buildall.cmake	2022-07-13 15:26:44 UTC (rev 10053)
@@ -7,6 +7,9 @@
 # cmake -DCMAKE_GENERATOR="Unix Makefiles" -P buildall.cmake
 # cmake -DCMAKE_GENERATOR="Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=../mingw.toolchain.cmake -P buildall.cmake
 
+set(BUILD_OPENSSL1 OFF)
+set(BUILD_OPENSSL3 OFF)
+
 if("${CMAKE_GENERATOR}" STREQUAL "")
   message(FATAL_ERROR "set CMAKE_GENERATOR!")
 endif()
@@ -54,10 +57,18 @@
   COMMAND ${CMAKE_COMMAND} -DCMAKE_GENERATOR=${CMAKE_GENERATOR} ${ARCHITECTURE_OPTION} -P SFMT.cmake
   )
 if(BUILD_SSL_LIBRARY)
-  message("openssl 1.1")
-  execute_process(
-    COMMAND ${CMAKE_COMMAND} -DCMAKE_GENERATOR=${CMAKE_GENERATOR} ${ARCHITECTURE_OPTION} -P openssl11.cmake
+  if(BUILD_OPENSSL1)
+    message("openssl 1.1")
+    execute_process(
+      COMMAND ${CMAKE_COMMAND} -DCMAKE_GENERATOR=${CMAKE_GENERATOR} ${ARCHITECTURE_OPTION} -P openssl11.cmake
     )
+  endif(BUILD_OPENSSL1)
+  if(BUILD_OPENSSL3)
+    message("openssl 3")
+    execute_process(
+      COMMAND ${CMAKE_COMMAND} -DCMAKE_GENERATOR=${CMAKE_GENERATOR} ${ARCHITECTURE_OPTION} -P openssl3.cmake
+    )
+  endif(BUILD_OPENSSL3)
 endif(BUILD_SSL_LIBRARY)
 message("cJSON")
 execute_process(


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