Re: [CMake] install TARGETS given unknown argument EXPORT. with cmake 2.8.9
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/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument EXPORT. with cmake 2.8.9
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/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument EXPORT. with cmake 2.8.9
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 2.8.3 ) project(foo CXX) set( MAJOR_VERSION 0) set( MINOR_VERSION 1) add_library(foo SHARED foo.cpp) install(TARGETS foo RUNTIME DESTINATION bin LIBRARY DESTINATION lib EXPORT foo-targets ) install(EXPORT foo-targets DESTINATION lib/foo) - Which is straight out of http://www.cmake.org/Wiki/CMake/Tutorials/Exporting_and_Importing_Targets cmake --version cmake version 2.8.9 cat /etc/SuSE-release SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 3 uname -a Linux hostname 3.0.101-0.8-default #1 SMP Fri Nov 1 12:51:09 UTC 2013 (2417eb9) x86_64 x86_64 x86_64 GNU/Linux -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] install TARGETS given unknown argument EXPORT. with cmake 2.8.9
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 like I am the only one with this question. Does anybody have any suggestions on how to resolve this? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] install TARGETS given unknown argument EXPORT. with cmake 2.8.9
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 resolution on what to do about it. Is the tutorial page in error? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake