🩹 fix: ignore python if it fails

This commit is contained in:
Helloyunho 2025-07-03 13:49:07 +09:00
parent 2b7daff76f
commit e200f1ca3e
No known key found for this signature in database
GPG Key ID: 6AFA210B0150BE47

View File

@ -530,13 +530,13 @@ if (ISLE_BUILD_APP)
) )
endif() endif()
if(Python3_FOUND) if(Python3_FOUND)
add_custom_command( execute_process(
OUTPUT ${CMAKE_SOURCE_DIR}/ISLE/res/arrow_bmp.h ${CMAKE_SOURCE_DIR}/ISLE/res/busy_bmp.h ${CMAKE_SOURCE_DIR}/ISLE/res/no_bmp.h
COMMAND ${Python3_EXECUTABLE} tools/png2h.py ISLE/res/arrow.png ISLE/res/busy.png ISLE/res/no.png COMMAND ${Python3_EXECUTABLE} tools/png2h.py ISLE/res/arrow.png ISLE/res/busy.png ISLE/res/no.png
DEPENDS ISLE/res/arrow.png ISLE/res/busy.png ISLE/res/no.png
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE PNG2H_RESULT
OUTPUT_QUIET
ERROR_QUIET
) )
add_custom_target(generate_header ALL DEPENDS ${CMAKE_SOURCE_DIR}/ISLE/res/arrow_bmp.h ${CMAKE_SOURCE_DIR}/ISLE/res/busy_bmp.h ${CMAKE_SOURCE_DIR}/ISLE/res/no_bmp.h)
endif() endif()
endif() endif()