rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.76k stars 312 forks source link

not all user specified arguments are passed to source subproject #426

Closed leleliu008 closed 2 years ago

leleliu008 commented 2 years ago

relavent code : https://github.com/rizsotto/Bear/blob/master/CMakeLists.txt#L38-L62

CMAKE_FIND_ROOT_PATH and CMAKE_IGNORE_PATH are very useful when cross compiling. and these variables are not passed to the source subproject.

I find only pass CMAKE_PREFIX_PATH not enought when cross compiling.

rizsotto commented 2 years ago

Thanks @leleliu008 , I've made a change which I think will work for you. It's on the devel branch. Could you check it out and tell if it works for you?

leleliu008 commented 2 years ago

@rizsotto I have confirmed that it works for me, thanks.

rizsotto commented 2 years ago

Thank you @leleliu008 !

It will be released as 3.0.17 in this month.