CMake: fix external building in protocolNew

This commit is contained in:
Mihai Fufezan 2024-04-20 14:57:01 +03:00
parent 543092f9cc
commit 694c08bb5e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ endfunction()
function(protocolNew protoPath protoName external)
if (external)
execute_process(
COMMAND hyprwayland-scanner ${WAYLAND_PROTOCOLS_DIR}/${protoPath} ${CMAKE_SOURCE_DIR}/protocols/
COMMAND hyprwayland-scanner ${protoPath} ${CMAKE_SOURCE_DIR}/protocols/
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
target_sources(Hyprland PRIVATE protocols/${protoName}.cpp)
else()