"No rule to make target" Error When Using make -j with cmake
<p>When I use "make -j" I get a "No rule to make target" error.  When I use make (no -j), I don't get the error.  The library is built as follows in one directory:</p>

<pre><code>add_library(Environment ${CXXSRCS}
</code></pre>

<p>and libEnvironment.a is created.  In another directory libEnvironment.a is referenced:</p>

<pre><code>add_executable(GetEnv ${GETSRCS})
target_link_libraries(GetEnv
    ${tools_environment_SOURCE_DIR}/libEnvironment.a
    xml++-2.6
    )
</code></pre>

<p>When I run with "cmake -j",  I get the error then the library gets created, but cmake stops.  When I run cmake -j again, everything is happy because the library has been created.  Any ideas?</p>