Re: [CMake] Running a function as a build target

2014-06-09 Thread Nils Gladitz
On 09.06.2014 12:58, Rick McGuire wrote: Is it possible to invoke a script function as part of a target? I have a build step where I need to process a bunch of variable values before building a particular target. All of the custom targets require a COMMAND, not a function. I thought maybe I

Re: [CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-09 Thread Nils Gladitz
On 09.06.2014 22:31, R. Keith Morley wrote: Hello, I am having trouble using find_package along with PATHS or HINTS. If I include a PATHS or HINTS path which does not contain the searched-for package, I always get an error such as this: CMake Error at CMakeLists.txt:182 (find_package): Could

[CMake] Confusion regarding usage of find_package and PATHS or HINTS

2014-06-09 Thread R. Keith Morley
Hello, I am having trouble using find_package along with PATHS or HINTS. If I include a PATHS or HINTS path which does not contain the searched-for package, I always get an error such as this: CMake Error at CMakeLists.txt:182 (find_package): Could not find module FindGLEW.cmake or a configur

Re: [CMake] CMAKE_COMPILER variable

2014-06-09 Thread Michael Enright
On Fri, Jun 6, 2014 at 3:55 PM, Adam wrote: > I think the "CMAKE_COMPILER" variable you're referring to is just a custom > variable passed to your external project, which it uses to build the > standard variables "CMAKE_C_COMPILER" & "CMAKE_CXX_COMPILER". This is why > your not finding anything.

[CMake] Eclipse project question.

2014-06-09 Thread gerry s
Hello All, I have a source folder(Src) as below: Src/Application/ Src/Middleware/ Src/Etc/ I create a build folder above Src/ mkdir build cd build cmake ../ This makes the binary under build/ with CMakeLists.txt under Src/, so I have Src/ build/ However, when I need to browse/debug code using

Re: [CMake] Running a function as a build target

2014-06-09 Thread David Cole
> Is it possible to invoke a script function as part of a target? No, because the variable values are "all gone" after CMake finishes running. And the custom build targets do not run until later at build time. >  I have a build step where I need to process a bunch of variable > values before bui

[CMake] Running a function as a build target

2014-06-09 Thread Rick McGuire
Is it possible to invoke a script function as part of a target? I have a build step where I need to process a bunch of variable values before building a particular target. All of the custom targets require a COMMAND, not a function. I thought maybe I could push this off to a script invoked by cm

Re: [CMake] Return value of cmake string find

2014-06-09 Thread David Cole
> What is returned if string(FIND) matches a substring, and what is > returned if it doesn't match anything? The documentation says: http://cmake.org/cmake/help/v2.8.12/cmake.html#command:string http://www.cmake.org/cmake/help/v3.0/command/string.html string(FIND[REVERSE]) "FIND will return th

[CMake] Return value of cmake string find

2014-06-09 Thread abid rahman
Hello, What is returned if string(FIND) matches a substring, and what is returned if it doesn't match anything? Abid K. -- 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 C

[CMake] ctest script mode for mingw

2014-06-09 Thread Rashad M
Hi all, Does anybody can share a cmak file used for dashboard submission(cdash) via ctest script mode. ctest -S I tried cmake and for my project cmake builds fine. But when using ctest it gives error on pthreads library. -- Regards, Rashad -- Powered by www.kitware.com Please keep mess

Re: [CMake] Question regarding External Project add and VTK

2014-06-09 Thread Jameson Merkow
Jc, I'm working on an open source project, but we're no quite ready to release it to the world yet.  We will likely post it on github or another hosting website (publicly) in the coming months and I'll be sure to let you know. We are looking at an early fall release date.  Jameson — Sent

Re: [CMake] Question regarding External Project add and VTK

2014-06-09 Thread Jean-Christophe Fillion-Robin
Hi Jameson, Glad to know you sorted out the issue. By any chance, do you think you could share a link to a github repository with your project ? That would allow us to review how you integrated "ExternalProjectDependency" and improve it. Thanks Jc On Sun, Jun 8, 2014 at 9:39 PM, jmerkow wrote