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.
If package
OROCOS-RTT
has not been found before, finding packageOROCOS-OCL
is supposed to callfind_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 packageOROCOS-RTT
has been found before or not. For that it is required to check<PackageName>_FOUND
according to CMake standards, which is set byfind_package(OROCOS-RTT)
implicitly and explicitly by orocos-rtt-config.cmake.