Skip to content

Commit

Permalink
Rename macro name rcl_set_symbol_visibility_hidden
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Suresh Bhat <bhatsach@amazon.com>
  • Loading branch information
bhatsach committed Feb 27, 2019
1 parent 67e851e commit d49a8e9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions rcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ find_package(rosidl_generator_c REQUIRED)
find_package(tinydir_vendor REQUIRED)

include_directories(include)
include(cmake/configure_rcl.cmake)
include(cmake/rcl_set_symbol_visibility_hidden.cmake)
include(cmake/get_default_rcl_logging_implementation.cmake)
get_default_rcl_logging_implementation(RCL_LOGGING_IMPL)

Expand Down Expand Up @@ -73,7 +73,7 @@ ament_target_dependencies(${PROJECT_NAME}
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} PRIVATE "RCL_BUILDING_DLL")
configure_rcl(${PROJECT_NAME} LANGUAGE "C")
rcl_set_symbol_visibility_hidden(${PROJECT_NAME} LANGUAGE "C")

install(
TARGETS ${PROJECT_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
#
# @public
#
macro(configure_rcl library_target)
macro(rcl_set_symbol_visibility_hidden library_target)
cmake_parse_arguments(_ARG "" "LANGUAGE" "" ${ARGN})
if(_ARG_UNPARSED_ARGUMENTS)
message(FATAL_ERROR "configure_rcl() called with unused arguments: ${_ARG_UNPARSED_ARGUMENTS}")
message(FATAL_ERROR "rcl_set_symbol_visibility_hidden() called with unused arguments: ${_ARG_UNPARSED_ARGUMENTS}")
endif()

if(NOT _ARG_LANGUAGE)
Expand Down Expand Up @@ -61,6 +61,6 @@ macro(configure_rcl library_target)
endif()

else()
message(FATAL_ERROR "configure_rcl() called with unsupported LANGUAGE: '${_ARG_LANGUAGE}'")
message(FATAL_ERROR "rcl_set_symbol_visibility_hidden() called with unsupported LANGUAGE: '${_ARG_LANGUAGE}'")
endif()
endmacro()
2 changes: 1 addition & 1 deletion rcl/rcl-extras.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

include("${rcl_DIR}/configure_rcl.cmake")
include("${rcl_DIR}/rcl_set_symbol_visibility_hidden.cmake")
2 changes: 1 addition & 1 deletion rcl_action/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ament_target_dependencies(${PROJECT_NAME}
"rosidl_generator_c"
)

configure_rcl(${PROJECT_NAME} LANGUAGE "C")
rcl_set_symbol_visibility_hidden(${PROJECT_NAME} LANGUAGE "C")
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} PRIVATE "RCL_ACTION_BUILDING_DLL")
Expand Down
2 changes: 1 addition & 1 deletion rcl_lifecycle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ament_target_dependencies(rcl_lifecycle
"rcutils"
)

configure_rcl(${PROJECT_NAME} LANGUAGE "C")
rcl_set_symbol_visibility_hidden(${PROJECT_NAME} LANGUAGE "C")
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(rcl_lifecycle PRIVATE "RCL_LIFECYCLE_BUILDING_DLL")
Expand Down
2 changes: 1 addition & 1 deletion rcl_yaml_param_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ add_library(
${rcl_yaml_parser_sources})
ament_target_dependencies(${PROJECT_NAME} "yaml" "rcutils" "rcl")

configure_rcl(${PROJECT_NAME} LANGUAGE "C")
rcl_set_symbol_visibility_hidden(${PROJECT_NAME} LANGUAGE "C")
# Causes the visibility macros to use dllexport rather than dllimport,
# which is appropriate when building the dll but not consuming it.
target_compile_definitions(${PROJECT_NAME} PRIVATE "RCL_YAML_PARAM_PARSER_BUILDING_DLL")
Expand Down

0 comments on commit d49a8e9

Please sign in to comment.