[CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
Hello! I'm writing a wrapper around find_package so I call find_package from my own function. I found it's near impossible because all the variables set by finders remain in the scope of my wrapper function, rather than in the caller's scope. Is there any way to force find_package to set all

Re: [CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
instead of a function. Macros don't introduce variable scope. Petr On Fri, Nov 7, 2014 at 4:23 PM, Andrey Upadyshev oli...@gmail.com wrote: Hello! I'm writing a wrapper around find_package so I call find_package from my own function. I found it's near impossible because all the variables set

Re: [CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
here https://gist.github.com/oliora/4961727299ed67337aba Andrey On Fri, Nov 7, 2014 at 4:56 PM, Andrey Upadyshev oli...@gmail.com wrote: Thank you for advice Petr! I will go with this solution if can't find another one. CMake macroses are slightly weird so I'm trying to avoid them :) On Fri

Re: [CMake] Windows XP + CMake + VS2013

2013-12-09 Thread Andrey Upadyshev
Hi Stefan, You should add CMake command option *-T vc120_xp* BR, Andrey Upadyshev On Sun, Dec 8, 2013 at 7:22 PM, Stefan Fendt ste...@sfendt.de wrote: Hi, I'm using CMake 2.8.12 together with MSVC 2013 and need to produce a binary which is (still) compatible with Windows XP SP3. If I'm