mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-17 05:03:33 +00:00
Make sure libxslt is only searched if doxygen is available as well
This commit is contained in:
parent
5a70df1cb7
commit
d2a29ec4c5
1 changed files with 13 additions and 12 deletions
|
@ -27,19 +27,20 @@ if ( DOXYGEN_FOUND )
|
|||
${DOXYGEN} Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
endif ( DOXYGEN_FOUND )
|
||||
|
||||
find_package ( LibXslt )
|
||||
if ( LIBXSLT_XSLTPROC_EXECUTABLE )
|
||||
add_custom_target ( doxygen_settings
|
||||
${LIBXSLT_XSLTPROC_EXECUTABLE}
|
||||
--output ${CMAKE_CURRENT_BINARY_DIR}/fluidsettings.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/doxygen/fluidsettings.xsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fluidsettings.xml
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
add_dependencies(doxygen doxygen_settings)
|
||||
endif ( LIBXSLT_XSLTPROC_EXECUTABLE )
|
||||
find_package ( LibXslt )
|
||||
if ( LIBXSLT_XSLTPROC_EXECUTABLE )
|
||||
add_custom_target ( doxygen_settings
|
||||
${LIBXSLT_XSLTPROC_EXECUTABLE}
|
||||
--output ${CMAKE_CURRENT_BINARY_DIR}/fluidsettings.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/doxygen/fluidsettings.xsl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fluidsettings.xml
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
add_dependencies(doxygen doxygen_settings)
|
||||
endif ( LIBXSLT_XSLTPROC_EXECUTABLE )
|
||||
|
||||
endif ( DOXYGEN_FOUND )
|
||||
|
||||
|
||||
if ( UNIX )
|
||||
|
|
Loading…
Reference in a new issue