Re: [CMake] install (CODE ... is not being invoked

2012-11-15 Thread Marshall, Rob
${command} RESULT_VARIABLE result OUTPUT_FILE build-out.log ERROR_FILE build-err.log ) -Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, November 14, 2012 11:17 AM To: Marshall, Rob Cc: cmake@cmake.org Subject: Re: [CMake] install (CODE

Re: [CMake] install (CODE ... is not being invoked

2012-11-14 Thread Marshall, Rob
To: Marshall, Rob Cc: cmake@cmake.org Subject: Re: [CMake] install (CODE ... is not being invoked If I copy/paste your code into a stand-alone CMakeLists.txt file, and run CMake 2.8.10.1 on my Mac with it, I get the expected output: Sample install message. appears during make install after you do

[CMake] install (CODE ... is not being invoked

2012-11-13 Thread Marshall, Rob
Hi, I am trying to use install (CODE) with my cmake script when I invoke make install on the command line but when I run the make install on the following code install(CODE set( INSTALL_TO_ARTIFACTS install ) ) install(CODE message(\Sample install message.\)) message ( INSTALL_TO_ARTIFACTS is:

Re: [CMake] How to tell if a project is an ExternalProject

2012-11-07 Thread Marshall, Rob
Thanks Stefan, That is a big help. Rob -Original Message- From: Stefan Eilemann [mailto:eilem...@gmail.com] Sent: Wednesday, November 07, 2012 12:10 AM To: Marshall, Rob Cc: cmake@cmake.org Subject: Re: [CMake] How to tell if a project is an ExternalProject On 6. Nov 2012, at 23:43

[CMake] Name of the current Target being built

2012-11-07 Thread Marshall, Rob
From a CMAKE script that I am writing is there a way to tell the name of the current target that is being built without having to pass the target name into the script as a parameter? Thanks, Rob -- Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] How to tell if a project is an ExternalProject

2012-11-06 Thread Marshall, Rob
Hi, I am trying to write a snippet that will determine if a library is an external project. So I wrote some code such as: ExternalProject_Get_Property( ${package} INSTALL_DIR ) To see if INSTALL_DIR gets populated. In the case where the ${package} doesn't exist as an ExternalProject CMAKE

[CMake] find_package(xyz)

2012-11-04 Thread Marshall, Rob
Is the intent of the find_package() macro to be used to locate prebuilt third party libraries that have Include and library files prebuilt? Or can it be used in a scenario where third party source is on the local file system but will be built During the overall build process for a project?

[CMake] How to generate a STATIC Library using ExternalProject_Add

2012-10-31 Thread Marshall, Rob
Hi, I am using ExternalProject_Add to build websocketpp. The build is successful and libwebsocketpp.a is generated. But it appears to be generated as a UTILITY rather than a STATIC. How can I configure ExternalProject_Add to build websocketapp as STATIC? When I try and link in websocketpp with

Re: [CMake] How to generate a STATIC Library using ExternalProject_Add

2012-10-31 Thread Marshall, Rob
(boost::system::error_code const, unsigned long)': From: David Cole [david.c...@kitware.com] Sent: Wednesday, October 31, 2012 9:12 AM To: Marshall, Rob Cc: cmake@cmake.org Subject: Re: [CMake] How to generate a STATIC Library using ExternalProject_Add Use