From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 摹曛, 29 5月 2025 18:14:38 +0800
Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop

---
 test/library/os/CMakeLists.txt |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/test/library/os/CMakeLists.txt b/test/library/os/CMakeLists.txt
index e91e417..64d64b4 100644
--- a/test/library/os/CMakeLists.txt
+++ b/test/library/os/CMakeLists.txt
@@ -11,19 +11,19 @@
 
 ADD_TEST(NAME test_network COMMAND test_network)
 
-add_executable( test_dmi_info dmi_info_test.cpp "dmi_info_test.cpp")
-
-target_link_libraries( test_dmi_info
- licensecc_static
- Boost::unit_test_framework 
- Boost::filesystem
- Boost::system
-)
-
-ADD_TEST(NAME test_dmi_info COMMAND test_dmi_info)
+IF(NOT DEFINED MINGW)
+	add_executable( test_dmi_info dmi_info_test.cpp "dmi_info_test.cpp")
+	target_link_libraries( test_dmi_info
+ 		licensecc_static
+ 		Boost::unit_test_framework 
+ 		Boost::filesystem
+ 		Boost::system
+	)
+	ADD_TEST(NAME test_dmi_info COMMAND test_dmi_info)
+ENDIF(NOT DEFINED MINGW)
 
 add_executable( test_execution_environment
- execution_environment_test.cpp
+ 	execution_environment_test.cpp
 )
 
 target_link_libraries( test_execution_environment
@@ -36,7 +36,10 @@
 ADD_TEST(NAME test_execution_environment COMMAND test_execution_environment)
 
 if(CODE_COVERAGE AND UNIX)
-	target_compile_options(test_dmi_info PUBLIC -O0 -g --coverage)
+	IF(NOT DEFINED MINGW)
+		target_compile_options(test_dmi_info PUBLIC -O0 -g --coverage)
+	ENDIF(NOT DEFINED MINGW)
+	
 	target_compile_options(test_execution_environment PUBLIC -O0 -g --coverage)
 	target_compile_options(test_network PUBLIC -O0 -g --coverage)
 endif(CODE_COVERAGE AND UNIX)

--
Gitblit v1.9.1