Ack.
-----Original Message-----
From: Thien Minh Huynh <[email protected]>
Sent: Wednesday, July 21, 2021 3:54 PM
To: Thang Duc Nguyen <[email protected]>; Hieu Hong Hoang
<[email protected]>
Cc: [email protected]; Thien Minh Huynh
<[email protected]>
Subject: [PATCH 1/1] build: checking test is enable before compile basetest
[#3274]
make install command will failure when disable test.
This fix just checking disable/enable test to avoid failure during compile.
---
src/base/Makefile.am | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/base/Makefile.am b/src/base/Makefile.am index
367b21910..edd360a9c 100644
--- a/src/base/Makefile.am
+++ b/src/base/Makefile.am
@@ -280,6 +280,8 @@ bin_core_common_test_LDADD = \
$(GMOCK_DIR)/lib/libgmock.la \
$(GMOCK_DIR)/lib/libgmock_main.la
+if ENABLE_TESTS
+
bin_PROGRAMS += bin/basetest
noinst_HEADERS += \
@@ -297,3 +299,5 @@ bin_basetest_LDADD = \
lib/libapitest.la \
lib/libosaf_common.la \
lib/libopensaf_core.la
+
+endif
--
2.25.1
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel