summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-14 16:35:16 +0900
committerMichele Calgaro <[email protected]>2024-02-15 11:02:49 +0900
commit6843dff0c846c386703d77b094ed576557a82036 (patch)
tree380c76e25e0be6d47d5a97eab5b4ce4fb3559596
parentc06fc2bc4e9a2ef8ea3a78085596cf2e0417e1ff (diff)
downloadtdevelop-6843dff0c846c386703d77b094ed576557a82036.tar.gz
tdevelop-6843dff0c846c386703d77b094ed576557a82036.zip
Simplify code since cmake minimum version is now 3.5
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 3636ecf9a45ec3bc358b6febabc447ada433c056)
-rw-r--r--CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0936e219..2ac66a33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,14 +47,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