Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit d56d059

Browse files
committed
Ensured protobuf static library selection in cmake
1 parent a37da8b commit d56d059

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall")
4848
# Configure the use of QT4
4949
find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED QUIET)
5050

51-
# add protocol buffers
51+
# add protocol buffers (make sure to find the static version)
52+
set(CMAKE_FIND_LIBRARY_SUFFIXES_OLD ${CMAKE_FIND_LIBRARY_SUFFIXES})
53+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
5254
find_package(Protobuf REQUIRED)
55+
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_OLD})
56+
set(CMAKE_FIND_LIBRARY_SUFFIXES_OLD)
5357

5458
#add libusb and pthreads
5559
find_package(libusb-1.0 REQUIRED)

deploy/hyperion.tar.gz

395 KB
Binary file not shown.

0 commit comments

Comments
 (0)