[CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-12 Thread david . hagood
I am trying to set up component registration as per http://www.cmake.org/Wiki/CMake/Tutorials/Packaging but when I run Cmake I get the error install TARGETS given unknown argument "EXPORT". While I've found many hits on Google with that error string, none that I have found have any resolutio

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-18 Thread david . hagood
I've not received any responses on my question as to why the "install" function was not accepting the "EXPORT" argument on cmake 2.8.9, as the WIKI (http://www.cmake.org/Wiki/CMake/Tutorials/Packaging) indicates should work. Again: I've seen many hits on the Internet about this error, so it's not

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-18 Thread Stephen Kelly
david.hag...@gmail.com wrote: > Does anybody have any suggestions on how to resolve this? Create an http://www.sscce.org/ and post it so that others can try what fails for you. Thanks, Steve. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://w

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-18 Thread Chuck Atkins
Hi David, What does your install(...) line look like so we can try to help you debug the issue? - Chuck On Wed, Feb 12, 2014 at 4:09 PM, wrote: > I am trying to set up component registration as per > > http://www.cmake.org/Wiki/CMake/Tutorials/Packaging > > but when I run Cmake I get the erro

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-20 Thread david . hagood
> Hi David, > > What does your install(...) line look like so we can try to help you debug > the issue? > OK, this is about as simple as it gets: --- file foo.c: extern int foo(void) { return 0; } --- file CMakeLists.txt cmake_minimum_required( VERSION

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-20 Thread Stephen Kelly
david.hag...@gmail.com wrote: > install(TARGETS foo > RUNTIME DESTINATION bin > LIBRARY DESTINATION lib > EXPORT foo-targets > ) The order of arguments is wrong. Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. I don't know if this is a behavior change since the wiki was written, but

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-21 Thread david . hagood
> The order of arguments is wrong. > > Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. > That fixed the issue. Shouldn't the WIKI be fixed so the example is correct? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/C

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-21 Thread Chuck Atkins
David, Indeed it should. Thanks for catching that! I've updated the wiki page with the correct order of arguments. - Chuck On Fri, Feb 21, 2014 at 11:25 AM, wrote: > > > The order of arguments is wrong. > > > > Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. > > > > That fixed the

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-21 Thread David Cole
The order of arguments is wrong. Move the 'EXPORT foo-targets' to just after 'TARGETS foo'. That fixed the issue. Shouldn't the WIKI be fixed so the example is correct? Sure it should -- can you edit the wiki page, and correct it? D -- Powered by www.kitware.com Please keep messages on

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-24 Thread david . hagood
> Sure it should -- can you edit the wiki page, and correct it? I don't have an account to edit the WIKI, so it might be faster if somebody who already does have an account does so. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/W

Re: [CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9

2014-02-24 Thread David Cole
Sure it should -- can you edit the wiki page, and correct it? I don't have an account to edit the WIKI, so it might be faster if somebody who already does have an account does so. Actually, I never should have sent my request.. :-) Chuck Atkins already had done it and replied that it was