Skip to content

Commit

Permalink
CMake disambiguation, can be included more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Oct 16, 2014
1 parent b2fbda8 commit 34a308f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gen/roah_rsbb_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ include_directories(${PROTOBUF_INCLUDE_DIRS})

file(GLOB ROAH_RSBB_MSGS_PROTOS ${CMAKE_CURRENT_SOURCE_DIR}/../../proto/*.proto)
protobuf_generate_cpp(RSBB_PROTO_SRCS RSBB_PROTO_HDRS ${ROAH_RSBB_MSGS_PROTOS})
add_library(roah_rsbb_msgs STATIC ${RSBB_PROTO_SRCS})
target_link_libraries(roah_rsbb_msgs ${PROTOBUF_LIBRARIES})
add_library(${DISAMBIGUATION}roah_rsbb_msgs STATIC ${RSBB_PROTO_SRCS})
target_link_libraries(${DISAMBIGUATION}roah_rsbb_msgs ${PROTOBUF_LIBRARIES})

set(ROAH_RSBB_MSGS_HPP "${CMAKE_CURRENT_BINARY_DIR}/../roah_rsbb_msgs.h")
file(REMOVE ${ROAH_RSBB_MSGS_HPP})
Expand Down
4 changes: 2 additions & 2 deletions libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ add_definitions("-DHAVE_LIBCRYPTO")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

file(GLOB PROTOBUF_COMM_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/protobuf_comm/*.cpp)
add_library(protobuf_comm STATIC ${PROTOBUF_COMM_SOURCES})
target_link_libraries(protobuf_comm ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES})
add_library(${DISAMBIGUATION}protobuf_comm STATIC ${PROTOBUF_COMM_SOURCES})
target_link_libraries(${DISAMBIGUATION}protobuf_comm ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES})

set(INCLUDE_DIRS ${INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)

0 comments on commit 34a308f

Please sign in to comment.