From f252244dd0033870c2b8ce9ed63e8f75c33678d7 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sun, 29 Nov 2020 12:16:10 +0100 Subject: [PATCH] Add workaround for https://github.com/conda-forge/cmake-feedstock/issues/129 --- cmake/GazeboUtils.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/GazeboUtils.cmake b/cmake/GazeboUtils.cmake index 6842ae7c91..2bccc2dcd2 100644 --- a/cmake/GazeboUtils.cmake +++ b/cmake/GazeboUtils.cmake @@ -79,7 +79,7 @@ macro (BUILD_ERROR) foreach (str ${ARGN}) SET (msg "\t${str}") MESSAGE (STATUS ${msg}) - APPEND_TO_CACHED_LIST(build_errors "build errors" ${msg}) + APPEND_TO_CACHED_LIST(build_errors "build errors" ${msgf}) endforeach () endmacro (BUILD_ERROR) @@ -147,6 +147,8 @@ endmacro () macro (gz_setup_unix) # Using dynamic linking in UNIX by default set(BUILD_SHARED_LIBS TRUE) + # Workaround for https://github.com/conda-forge/cmake-feedstock/issues/129 + add_link_options("-L${CMAKE_INSTALL_PREFIX}/lib") endmacro() #################################################