[CMake] Why does CMake set CMAKE_OSX_SYSROOT using the Xcode generator?

2014-02-18 Thread Kyle Sluder
I'm trying to build LLVM via Xcode. In order to do that, I have to fix some explicit uses of "-isysroot", since it results in Xcode targets that try to build for the simulator with two -isysroot flags pointing at two different SDKs. Instead I'm trying to set XCODE_ATTRIBUTE_SDKROOT to the appropria

Re: [CMake] find_path doesn't work if environment variable has spaces

2014-02-18 Thread Iulian-Nicu Şerbănoiu
And the solution is to remove quotes from the environment variable. http://stackoverflow.com/a/21842586/13136 Iulian On Mon, Feb 17, 2014 at 11:47 PM, Iulian-Nicu Şerbănoiu < undergra...@gmail.com> wrote: > Hello, > > I'm using cmake 2.8.12 on Windows XP. I have an issue when calling > find_p

[CMake] Custom target with CPack fails

2014-02-18 Thread Alexander Broekhuis
Hi all, I've already replied to an older thread mentioning the same issue, but still saw no reply. I have a problem with CPack when using in combination with a custom top level target. In my setup I have custom command which uses CPack to create a zip file. For me this zip file is a top level ar

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

[CMake] Check header file woos

2014-02-18 Thread Oliver
All, I am trying to use CheckIncludeFiles for header file check. I know the file I want to check is located at /usr/include/lustre, so I supplied the following: include(CheckIncludeFiles) check_include_files("lustre/lustre_user.h" HAVE_LUSTRE_USER_H) And it report can't find. Then I tried to be

[CMake] VS 2013 and 64 bit toolchain

2014-02-18 Thread cheesy4poofs
I'm constantly getting out of memory errors with VS 2013 and the x86 linker. I stumbled across this blog post that recommends moving to the 64 bit linker. http://blogs.msdn.com/b/vcblog/archive/2013/10/30/the-visual-c-linker-best-practices-developer-iteration.aspx The article mentions adding /