s-nakaoka / choreonoid

An integrated graphical robotics application framework
http://choreonoid.org
Other
94 stars 58 forks source link

Fix find_package(Choreonoid) with different cmake_minimum_required #241

Closed gergondet closed 4 years ago

gergondet commented 4 years ago

Currently if find_package(Choreonoid) is called in a CMake project where cmake_minimum_required version is lower than 3.1 the use of IN_LIST operator will create troubles (CMP0057 will be unset and defaulted to OLD)

This PR ensures that IN_LIST exists in the consumer's cmake version and set the policy

s-nakaoka commented 4 years ago

Thank you for fixing the problem.