I am running cmake 2.6.3 on vista32 1. Is there any way to add a path for cmake to permanently look for modules/packages in? I am writing a package, which I have in SVN, and I really don't want to copy it back and forth to the cmake folder or I will get out of whack. And when I set the CMAKE_MODULE_PATH path in the CMakeLists.txt file, it (sometimes) works but this is a pain to do for every single project that uses my package. 2. When I do set the CMAKE_MODULE_PATH, I am having strange parsing errors when expanding environment variables. I have the following environment variables set in vista: %ETK_LIBRARIES% = C:\working\libraries\trunk %ETK_BUILD% = c:/working/libraries/trunk/build Note that I really don't want "build", I just have it in here for a test.
I have a module called FindETK.cmake in the C:\working\libraries\trunk\build directory. In one of my projects using this package, things work fine with: cmake_minimum_required(VERSION 2.6) set(CMAKE_MODULE_PATH $ENV{ETK_LIBRARIES}/build ) find_package(ETK) ... But the EXACT same 3 lines at the top of another project give: CMake Warning (dev) at CMakeLists.txt:2 (SET): Syntax error in cmake code at C:/working/libraries/trunk/examples/cmake_example2/build_nmake_debug/CMakeFi les/CMakeTmp/CMakeLists.txt:2 when parsing string C:\working\libraries\trunk/build Invalid escape sequence \w After I set the ETK_BUILD as above (with the / in the wrong direction for windows), both worked with: cmake_minimum_required(VERSION 2.6) set(CMAKE_MODULE_PATH $ENV{ETK_BUILD}) find_package(ETK)
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake