Skip to content

Commit

Permalink
Don't always run php for DPP_CORO (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
supsm authored Jan 20, 2025
1 parent 5888e55 commit 9c16057
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ if (UNIX)
COMMAND php buildtools/emojis.php
)
set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/../include/dpp/unicode_emojis.h" PROPERTIES GENERATED TRUE )

if (DPP_CORO)
execute_process(
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.."
COMMAND php buildtools/make_struct.php "\\Dpp\\Generator\\CoroGenerator"
)
endif()
else()
message("-- Autogeneration is not available")
endif()
Expand Down Expand Up @@ -410,8 +417,6 @@ if(DPP_CORO)
endif()
endif()
target_compile_definitions(dpp PUBLIC DPP_CORO)
execute_process(WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.."
COMMAND php buildtools/make_struct.php "\\Dpp\\Generator\\CoroGenerator")
endif()

if(DPP_FORMATTERS)
Expand Down

0 comments on commit 9c16057

Please sign in to comment.