Simplify code since cmake minimum version is now 3.5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/113/head
Michele Calgaro 10 months ago
parent 23c6e54fc3
commit 296421fe12
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -48,14 +48,8 @@ tde_setup_paths( )
##### add apidox targets ############ ##### 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 add_custom_target( apidox
COMMAND ${CMAKE_ENV} COMMAND ${CMAKE_COMMAND} -E env
"TQTDOCDIR=/usr/share/tqt3/doc/html" "TQTDOCDIR=/usr/share/tqt3/doc/html"
"DOXDATA=${HTML_INSTALL_DIR}/en/common" "DOXDATA=${HTML_INSTALL_DIR}/en/common"
${CMAKE_SOURCE_DIR}/admin/doxygen.sh ${CMAKE_SOURCE_DIR}/admin/doxygen.sh

Loading…
Cancel
Save