Infrequently seen warnings such as these are usually ignored. But they can
also mask issues that may need addressing, such as depreciating CMake
variables. Thankfully CMake allows for a mix of old and new behaviors.

I've added a issue to nupic.core here
https://github.com/numenta/nupic.core/issues/519 A change that can be
labelled with 'newbie' and 'type:toolin' (?). A simple change that can be
made locally too.

Regards, Richard.


On Wed, Jul 29, 2015 at 5:16 PM, Matthew Taylor <[email protected]> wrote:

> This is just a compiler warning, isn't it? It doesn't look like it is
> preventing you from building. Is there an actual error in the build
> output?
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
>
>
> On Wed, Jul 29, 2015 at 9:08 AM, wanghouzhi-1986
> <[email protected]> wrote:
> > hello everyone :
> >        i  have a trouble . When i build nupic.core from sources  with
> cmake
> > ,   I get the following warning , that is why  and  how can i
> >
> > figure out this problem.  thank you  for your help !
> >
> >
> > whzdeMacBook-Pro:scripts whz$ cmake $NUPIC_CORE/src
> > doing local build
> > doing local build
> > fatal: Not a git repository (or any of the parent directories): .git
> > -- Configuring done
> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
> > target
> >   "helloregion" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of
> target
> >   "helloregion" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:507 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target "c++abi" of target "helloregion" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
> > target
> >   "prototest" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of
> target
> >   "prototest" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:519 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target "c++abi" of target "prototest" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
> > target
> >   "hello_sp_tp" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of
> target
> >   "hello_sp_tp" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:529 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target "c++abi" of target "hello_sp_tp" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libcapnp.a" of
> > target
> >   "unit_tests" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target
> >   "/Users/whz/nupic-2.core-master/external/darwin64/lib/libkj.a" of
> target
> >   "unit_tests" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) at CMakeLists.txt:585 (add_dependencies):
> >   Policy CMP0046 is not set: Error on non-existent dependency in
> >   add_dependencies.  Run "cmake --help-policy CMP0046" for policy
> details.
> >   Use the cmake_policy command to set the policy and suppress this
> warning.
> >
> >   The dependency target "c++abi" of target "unit_tests" does not exist.
> > This warning is for project developers.  Use -Wno-dev to suppress it.
> >
> > -- Generating done
> > -- Build files have been written to: /Users/whz/nupic-2.core-master/src
> >
> >
> >
> >
> >
>
>

Reply via email to