From 6cde52b224fc48521589c271c38f60d76fa25340 Mon Sep 17 00:00:00 2001
From: Andrea Gianarda <andrea.gianarda@belledonne-communications.com>
Date: Mon, 16 Oct 2023 09:03:04 +0200
Subject: [PATCH] Delete always TRUE if condition

---
 wrappers/cpp/CMakeLists.txt | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/wrappers/cpp/CMakeLists.txt b/wrappers/cpp/CMakeLists.txt
index 24e5e49c57..24ab847820 100644
--- a/wrappers/cpp/CMakeLists.txt
+++ b/wrappers/cpp/CMakeLists.txt
@@ -137,9 +137,7 @@ if(ENABLE_DOC OR ENABLE_CXX_WRAPPER)
 			liblinphone-cxx-wrapper
 		)
 		add_custom_target(linphone-cpp-html-doc ALL DEPENDS "${CPP_HTML_DIR}/index.html")
-		if(ENABLE_DOC)
-			install(DIRECTORY "${CPP_HTML_DIR}"
-				DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/liblinphone-${LINPHONE_VERSION}")
-		endif()
+		install(DIRECTORY "${CPP_HTML_DIR}"
+			DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/liblinphone-${LINPHONE_VERSION}")
 	endif()
 endif()
-- 
GitLab