[CMake] install TARGETS given unknown argument "EXPORT". with cmake 2.8.9
Stephen Kelly
steveire at gmail.com
Thu Feb 20 16:10:26 EST 2014
david.hagood at 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
CMake 3.0 has documentation which makes that wiki page outdated anyway.
Thanks,
Steve.
More information about the CMake
mailing list