cmake: fix compile

This commit is contained in:
vaxerski 2023-07-20 17:53:50 +02:00
parent a3e1e5e8ba
commit e5dd133808

View file

@ -148,7 +148,7 @@ if(USE_TRACY)
option( TRACY_ON_DEMAND "" ON) option( TRACY_ON_DEMAND "" ON)
add_subdirectory (subprojects/tracy) add_subdirectory (subprojects/tracy)
target_link_libraries(Hyprland PkgConfig::deps Tracy::TracyClient) target_link_libraries(Hyprland Tracy::TracyClient)
if(USE_TRACY_GPU) if(USE_TRACY_GPU)
message(STATUS "Tracy GPU Profiling is turned on") message(STATUS "Tracy GPU Profiling is turned on")
@ -164,14 +164,14 @@ target_compile_definitions(Hyprland
"GIT_DIRTY=\"${GIT_DIRTY}\"" "GIT_DIRTY=\"${GIT_DIRTY}\""
"GIT_TAG=\"${GIT_TAG}\"") "GIT_TAG=\"${GIT_TAG}\"")
target_link_libraries(Hyprland rt)
set(CPACK_PROJECT_NAME ${PROJECT_NAME}) set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack) include(CPack)
message(STATUS "Setting link libraries") message(STATUS "Setting link libraries")
target_link_libraries(Hyprland rt PkgConfig::deps)
function(protocol protoPath protoName external) function(protocol protoPath protoName external)
if (external) if (external)
execute_process( execute_process(