PCL_DEFINITIONS in downstream packages

asked 2018-03-22 09:17:23 -0600

Maya gravatar image

How can I pass PCL_DEFINITIONS to downstream packages ?

On my system PCL actually make use of sse which is not default for EIGEN. Hence I need to make sure that PCL_DEFINITIONS get pass to any package using a package dependent on PCL. Is there any good way to do this currently other than having

find_package(PCL 1.7 REQUIRED)
add_definitions(${PCL_DEFINITIONS})

In every project ?

edit retag flag offensive close merge delete