mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
🩹 fix: don't generate header if python is not found
This commit is contained in:
parent
16b11840d1
commit
2b7daff76f
@ -529,6 +529,7 @@ if (ISLE_BUILD_APP)
|
|||||||
ISLE/3ds/config.cpp
|
ISLE/3ds/config.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if(Python3_FOUND)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
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
|
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
|
||||||
@ -536,6 +537,7 @@ if (ISLE_BUILD_APP)
|
|||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
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)
|
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()
|
||||||
|
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user