mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
Meta: Don't search for both Python and Python3 in CMake
CMake will cache the result here, so there's no need to look for both.
This commit is contained in:
parent
5d2a36f244
commit
dd6f47e696
1 changed files with 2 additions and 2 deletions
|
@ -88,11 +88,11 @@ target_link_libraries(LibGfx PRIVATE LibCompress LibCore LibCrypto LibFileSystem
|
||||||
set(generated_sources TIFFMetadata.h TIFFTagHandler.cpp)
|
set(generated_sources TIFFMetadata.h TIFFTagHandler.cpp)
|
||||||
list(TRANSFORM generated_sources PREPEND "ImageFormats/")
|
list(TRANSFORM generated_sources PREPEND "ImageFormats/")
|
||||||
|
|
||||||
find_package(Python COMPONENTS Interpreter REQUIRED)
|
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${generated_sources}
|
OUTPUT ${generated_sources}
|
||||||
COMMAND ${Python_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/TIFFGenerator.py" -o "${CMAKE_CURRENT_BINARY_DIR}/ImageFormats"
|
COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/TIFFGenerator.py" -o "${CMAKE_CURRENT_BINARY_DIR}/ImageFormats"
|
||||||
DEPENDS "TIFFGenerator.py"
|
DEPENDS "TIFFGenerator.py"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue