Hi,

I have some experience with cmake toolchain files, and wanted to try it
under windows. Everything works fine (find_library, path etc) except
find_package.

I added a custom FindCTRULIB.cmake file in my folder D:/devkitPro/devkitArm
and this folder is listed in my CMAKE_FIND_ROOT_PATH, printing its value
gives this :

 d:/devkitPro/devkitARM;d:/devkitPro

I also tried to put it in D:/devkitPro/devkitArm/cmake and
D:/devkitPro/devkitArm/share/cmake but it doesn't work.

Did I misunderstand the find_package documentation ?

I know that I could use CMAKE_MODULE_PATH, but I think this one should only
be used by the projects, not for scripts that are shipped with other
libraries.

Thanks,
Lectem
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to