mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +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)
|
||||
list(TRANSFORM generated_sources PREPEND "ImageFormats/")
|
||||
|
||||
find_package(Python COMPONENTS Interpreter REQUIRED)
|
||||
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
||||
|
||||
add_custom_command(
|
||||
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"
|
||||
VERBATIM
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue