diff options
author | Be <be@mixxx.org> | 2020-11-24 11:19:44 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-24 11:19:44 -0600 |
commit | d40b0b513e407d62a08a4a47454991033eb5996b (patch) | |
tree | e9e9c09fbdc2b0219f636d0a03bd6edd6401550b /src | |
parent | 1731ae5612c5f6a8e750cb8249b400869e6aefa1 (diff) | |
parent | 623d099bcbabd02e8e853998deea273cd8bd08a4 (diff) |
Merge remote-tracking branch 'upstream/2.3' into macos_buildenv_script
Diffstat (limited to 'src')
-rw-r--r-- | src/proto/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/proto/CMakeLists.txt b/src/proto/CMakeLists.txt index 3191b9e3b4..e5fc68fa74 100644 --- a/src/proto/CMakeLists.txt +++ b/src/proto/CMakeLists.txt @@ -1,5 +1,5 @@ # Protobuf -find_package(Protobuf REQUIRED) +find_package(Protobuf) protobuf_generate_cpp( PROTO_SOURCES PROTO_HEADERS @@ -13,6 +13,8 @@ protobuf_generate_cpp( add_library(mixxx-proto STATIC ${PROTO_SOURCES} ${PROTO_HEADERS}) if(TARGET protobuf::libprotobuf-lite) target_link_libraries(mixxx-proto PUBLIC protobuf::libprotobuf-lite) -else() +elseif(TARGET protobuf::libprotobuf) target_link_libraries(mixxx-proto PUBLIC protobuf::libprotobuf) +else() + message(FATAL_ERROR "Protobuf or Protobuf-lite libraries are required to compile Mixxx.") endif() |