orocos-toolchain / ocl

Orocos Component Library
Other
16 stars 33 forks source link

cmake: fix finding package OROCOS-RTT from within orocos-ocl-config.cmake #93

Closed meyerj closed 2 years ago

meyerj commented 2 years ago

If package OROCOS-RTT has not been found before, finding package OROCOS-OCL is supposed to call find_package(OROCOS-RTT) it internally since https://github.com/orocos-toolchain/ocl/commit/6aaec69595ff3f9f8a316b330228ac487d26a86d.

Variable OROCOS_TARGET may be defined as a CMake variable at the command line or in the CMake cache, so its evaluation is not an indication of whether CMake package OROCOS-RTT has been found before or not. For that it is required to check <PackageName>_FOUND according to CMake standards, which is set by find_package(OROCOS-RTT) implicitly and explicitly by orocos-rtt-config.cmake.

snrkiwi commented 2 years ago

LGTM