<span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">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&#39;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.</span><br><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">I have the following environment variables set in vista:</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">%ETK_LIBRARIES% = C:\working\libraries\trunk
%ETK_BUILD%  = c:/working/libraries/trunk/build<br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Note that I really don&#39;t want &quot;build&quot;, I just have it in here for a test.</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">I have a module called FindETK.cmake in the C:\working\libraries\trunk\build directory.</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">In one of my projects using this package, things work fine with:</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH $ENV{ETK_LIBRARIES}/build )
find_package(ETK)
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">...</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">But the EXACT same 3 lines at the top of another project give:</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">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</span></div><div><br></div><div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">After I set the ETK_BUILD as above (with the / in the wrong direction for windows), both worked with:</span></div>
<div><span class="Apple-style-span" style="white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH $ENV{ETK_BUILD})
find_package(ETK)<br></span></div>