summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-14 16:36:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-15 11:03:16 +0900
commit487706ea5121c872147b648cf1d140262448fddf (patch)
tree6e527e408f4d91e2b0d574e74bfa0e03b1a4ee49
parent0037a5640ef938c4e7a290359b05e52ea1984ce8 (diff)
downloadtdepim-487706ea5121c872147b648cf1d140262448fddf.tar.gz
tdepim-487706ea5121c872147b648cf1d140262448fddf.zip
Simplify code since cmake minimum version is now 3.5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 296421fe123cb218edd8461cfb9920bad0f6afda)
-rw-r--r--CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be1c9c205..7ae5238f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,14 +48,8 @@ tde_setup_paths( )
##### add apidox targets ############
-if( "${CMAKE_VERSION}" VERSION_LESS "3.1" )
- set( CMAKE_ENV "env" )
-else()
- set( CMAKE_ENV "${CMAKE_COMMAND};-E;env" )
-endif()
-
add_custom_target( apidox
- COMMAND ${CMAKE_ENV}
+ COMMAND ${CMAKE_COMMAND} -E env
"TQTDOCDIR=/usr/share/tqt3/doc/html"
"DOXDATA=${HTML_INSTALL_DIR}/en/common"
${CMAKE_SOURCE_DIR}/admin/doxygen.sh