summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-14 16:34:16 +0900
committerMichele Calgaro <[email protected]>2024-02-15 11:02:03 +0900
commite2b34f0b38fc2d0da5b45a706e8303e6a5a4f0a0 (patch)
treecd48f938f119964aa2237c1f0a77e01788aa94db
parent642c75b83b36fdb9d485aa0a98e0a1667677b5ed (diff)
downloadtdegames-e2b34f0b38fc2d0da5b45a706e8303e6a5a4f0a0.tar.gz
tdegames-e2b34f0b38fc2d0da5b45a706e8303e6a5a4f0a0.zip
Simplify code since cmake minimum version is now 3.5
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit c5dbc4457c79bad52a0b0ae64c9ea4397517c91b)
-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