[CMake] Force configure step to build and install depends before completing.

2014-02-20 Thread Jack Smith
I think I've have an epiphany. I've been really struggling to understand how to get my build to work, and it seems the problem is with the configure step of cmake. I would like to see some mechanism whereby I can delay the completion of the configure step of a target until the build (and install

[CMake] cross compiling and find_XX functions

2014-02-10 Thread Jack Smith
I understand the cross-compile process reasonably well. I also have a fairly good feel for ExternalProject_Add, What I'm trying to do is combine these ideas but, I am confused about one general issue. While I am cross-compiling the Linux kernel, I discover that the kernel requires zlib. So, I

Re: [CMake] Unnecessary rebuild of ExternalProject_Add target

2014-02-09 Thread Jack Smith
On Sat, Feb 8, 2014 at 2:55 PM, Stefan Eilemann eilem...@gmail.com wrote: On 8. Feb 2014, at 14:28, David Cole dlrd...@aol.com wrote: When you give a git repo for ExternalProject, it will *always* execute the UPDATE_COMMAND by default. And then, all the steps after update will re-execute

Re: [CMake] Unnecessary rebuild of ExternalProject_Add target

2014-02-09 Thread Jack Smith
On Sun, Feb 9, 2014 at 1:39 PM, David Cole dlrd...@aol.com wrote: What does your call to ExternalProject_Add look like now? ExternalProject_Add( grub GIT_REPOSITORY git://git.savannah.gnu.org/grub.git GIT_TAG grub-2.02-beta2 UPDATE_COMMAND CONFIGURE_COMMAND ./autogen.sh

Re: [CMake] Unnecessary rebuild of ExternalProject_Add target

2014-02-09 Thread Jack Smith
On Sun, Feb 9, 2014 at 4:10 PM, Jack Smith smith.jack.sid...@gmail.comwrote: ExternalProject_Add( grub GIT_REPOSITORY git://git.savannah.gnu.org/grub.git GIT_TAG grub-2.02-beta2 UPDATE_COMMAND CONFIGURE_COMMAND ./autogen.sh ./configure BUILD_COMMAND make -j 2

[CMake] Unnecessary rebuild of ExternalProject_Add target

2014-02-08 Thread Jack Smith
Is there something that I am missing that will prevent make from *always* calling autogen and configure even though the target has been built and has not been changed ? Here is the offending project. ## Grub boot loader set(PROJECT_NAME grub) set(PROJECT_URL git://git.savannah.gnu.org/grub.git)

[CMake] cross compiling - CMAKE_FIND_ROOT_PATH_MODE_LIBRARY and link.txt

2013-11-16 Thread Jack Smith
Stephen Kelly wrote You might consider trying my cross-compiling-toolchain-variables branch in the git repo. Thanks but I really want to understand what I can do to get my version (2.8.0) to work. Is there some CMAKE_ variable I should be setting in my toolchain file to point the linker at the