CMake Error at CMakeLists.txt:3022 (install):
install TARGETS given target "game-client" which does not exist.
CMake Error at CMakeLists.txt:3048 (install):
install TARGETS given target "game-client" which does not exist.
@Kaffeine any ideas?-DCLIENT=OFF
and -DSERVER=OFF
do not breaks the install target.
winget
?winget
? pacman -Syuu
(run twice), some programs have auto-updater included, other programs need to be redownloaded from the websitepwd
prints what? C:\Users\etc..
?C:\Users\Robert>pwd
/c/Users/Robert
C:\Users\Robert>which bash
/usr/bin/bash
C:/Users/Chiller/Desktop/teeworlds/src/engine/shared/demo.cpp:129:1: internal compiler error: in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1275
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include(FetchContent)
FetchContent_Declare(
gRPC
GIT_REPOSITORY https://github.com/grpc/grpc
GIT_TAG v1.52.1 # e.g v1.28.0
)
set(FETCHCONTENT_QUIET OFF)
FetchContent_MakeAvailable(gRPC)
Which is working so far ( it clones the repository and all of its submodules )
In the CMakeList I've added
add_library(proto-objects OBJECT "${CMAKE_CURRENT_LIST_DIR}/proto/server.proto")
target_link_libraries(proto-objects PUBLIC protobuf::libprotobuf gRPC::grpc gRPC::grpc++_unsecure)
set(PROTO_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/src/game/generated")
set(PROTO_IMPORT_DIRS "${CMAKE_CURRENT_LIST_DIR}/proto")
protobuf_generate(
LANGUAGE cpp
TARGET proto-objects
OUT_VAR PROTO_GENERATED_FILES
IMPORT_DIRS ${PROTO_IMPORT_DIRS}
PROTOC_OUT_DIR "${PROTO_BINARY_DIR}")
set_source_files_properties(${PROTO_GENERATED_FILES} PROPERTIES SKIP_UNITY_BUILD_INCLUSION on)
protobuf_generate(
TARGET proto-objects
OUT_VAR PROTO_GENERATED_FILES
LANGUAGE grpc
GENERATE_EXTENSIONS .grpc.pb.h .grpc.pb.cc
PLUGIN "protoc-gen-grpc=\$<TARGET_FILE:gRPC::grpc_cpp_plugin>"
# PLUGIN_OPTIONS "generate_mock_code=true"
IMPORT_DIRS ${PROTO_IMPORT_DIRS}
PROTOC_OUT_DIR "${PROTO_BINARY_DIR}")
set_source_files_properties(${PROTO_GENERATED_FILES} PROPERTIES SKIP_UNITY_BUILD_INCLUSION on)
target_include_directories(proto-objects PUBLIC "$<BUILD_INTERFACE:${PROTO_BINARY_DIR}>")
CMake Error at /usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227 (add_custom_command):
add_custom_command called with OUTPUT containing a "<". This character is
not allowed.
Call Stack (most recent call first):
CMakeLists.txt:1880 (protobuf_generate)
CMake Error at /usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227 (add_custom_command):
add_custom_command called with OUTPUT containing a "<". This character is
not allowed.
Call Stack (most recent call first):
CMakeLists.txt:1880 (protobuf_generate)
<
comes from/usr/share/cmake-3.18/Modules/FindProtobuf.cmake:227
?CMakeLists.txt:1880
The freedom to run the program as you wish, for any purpose (freedom 0).
The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
The freedom to redistribute copies so you can help others (freedom 2).
The freedom to distribute copies of your modified versions to others (freedom 3). By doing this you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.