-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from madebr/zyre_for_casabre
zyre: add shared/static + do not override shared in options
- Loading branch information
Showing
5 changed files
with
65 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
recipes/zyre/2.0.0/patches/0001-cmake-use-conan-disable-executables.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- CMakeLists.txt | ||
+++ CMakeLists.txt | ||
@@ -109,8 +109,8 @@ set(OPTIONAL_LIBRARIES) | ||
######################################################################## | ||
find_package(libzmq REQUIRED) | ||
IF (LIBZMQ_FOUND) | ||
- include_directories(${LIBZMQ_INCLUDE_DIRS}) | ||
- list(APPEND MORE_LIBRARIES ${LIBZMQ_LIBRARIES}) | ||
+ include_directories(${CONAN_INCLUDE_DIRS_LIBZMQ}) | ||
+ list(APPEND MORE_LIBRARIES ${CONAN_LIBS_LIBZMQ}) | ||
set(pkg_config_libs_private "${pkg_config_libs_private} -lzmq") | ||
ELSE (LIBZMQ_FOUND) | ||
message( FATAL_ERROR "libzmq not found." ) | ||
@@ -121,8 +121,8 @@ ENDIF (LIBZMQ_FOUND) | ||
######################################################################## | ||
find_package(czmq REQUIRED) | ||
IF (CZMQ_FOUND) | ||
- include_directories(${CZMQ_INCLUDE_DIRS}) | ||
- list(APPEND MORE_LIBRARIES ${CZMQ_LIBRARIES}) | ||
+ include_directories(${CONAN_INCLUDE_DIRS_CZMQ}) | ||
+ list(APPEND MORE_LIBRARIES ${CONAN_LIBS_CZMQ}) | ||
set(pkg_config_libs_private "${pkg_config_libs_private} -lczmq") | ||
ELSE (CZMQ_FOUND) | ||
message( FATAL_ERROR "czmq not found." ) | ||
@@ -182,9 +182,9 @@ install(TARGETS zyre | ||
ARCHIVE DESTINATION "lib${LIB_SUFFIX}" # .lib file | ||
RUNTIME DESTINATION bin # .dll file | ||
) | ||
- | ||
+if(BUILD_EXECUTABLES) | ||
include(${CMAKE_CURRENT_SOURCE_DIR}/src/CMakeLists-local.txt) # Optional project-local hook | ||
- | ||
+endif() | ||
######################################################################## | ||
# pkgconfig | ||
######################################################################## | ||
@@ -211,6 +211,7 @@ install( | ||
######################################################################## | ||
# executables | ||
######################################################################## | ||
+if(BUILD_EXECUTABLES) | ||
add_executable( | ||
perf_local | ||
"${SOURCE_DIR}/src/perf_local.c" | ||
@@ -304,7 +305,7 @@ set_target_properties( | ||
zyre_selftest | ||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${SOURCE_DIR}/src" | ||
) | ||
- | ||
+endif() | ||
######################################################################## | ||
# tests | ||
######################################################################## |
This file was deleted.
Oops, something went wrong.