summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-14 16:34:16 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-15 11:00:42 +0900
commitc5dbc4457c79bad52a0b0ae64c9ea4397517c91b (patch)
treec9c7683e8ba170a7a35ef326b2d3cd30ee1bc4b1
parent9e082651a5552014c1fb914c35342233bc54034b (diff)
downloadtdegames-c5dbc4457c79bad52a0b0ae64c9ea4397517c91b.tar.gz
tdegames-c5dbc4457c79bad52a0b0ae64c9ea4397517c91b.zip
Simplify code since cmake minimum version is now 3.5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 40c694ee..18b46b6d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,14 +118,8 @@ endif( WITH_TEST )
##### 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