Re: [CMake] Problem with CMake 3.3.0-rc3

2015-07-06 Thread Brad King
On 07/02/2015 05:06 PM, Clifford Yapp wrote: > When running the BRL-CAD configure process with the latest CMake > release candidate, the first configure pass completes successfully. > The second pass fails almost immediately with the error: > > CMake Error at CMakeLists.txt:120 (configure_file): >

Re: [CMake] Preventing CMakeLists from being too similar

2015-07-06 Thread Daniel Wirtz
Hey, there's several options. - the easiest is probably to create inclusion files on the Nick level, put the identical functionality in there and include them in the modules. - a bit "cleaner" ist to create a e.g. Macros.cmake file on the Nick level, put the identical functionality in there and i

[CMake] Preventing CMakeLists from being too similar

2015-07-06 Thread Crast, Nicholas
Hi guys, I have a question for you about general practices. I have a top level directory with a bunch of modules inside: Nick | |module1 |module2 |module3 Module1, module2, and module3 are subdirectories inside of the nick directory. Each module directory contains src,inc and test (gtest unit

[CMake] adding file extensions for languages

2015-07-06 Thread Justin Cook
Hello, I was trying to add some file extensions for the Fortran language (.ftn), but I was not able to get past some errors even after trying a few different options including appending to CMAKE_Fortran_SOURCE_FILE_EXTENSIONS in a toolchain file. Ideas on how to get around the following error(s

Re: [CMake] cmake linking errors in simple project

2015-07-06 Thread Raymond Wan
Hi Owen, On Mon, Jul 6, 2015 at 3:48 PM, Owen Alanzo Hogarth wrote: > I created this simple project but I am having linking errors. Everything > builds correctly but when I try to add my lib to my main.c cmake complains > about linking errors. > > Here's what the project looks like: http://paste

[CMake] cmake linking errors in simple project

2015-07-06 Thread Owen Alanzo Hogarth
I created this simple project but I am having linking errors. Everything builds correctly but when I try to add my lib to my main.c cmake complains about linking errors. Here's what the project looks like: http://pastebin.com/22bCsuiE if i #include "time_utils.h" in my main.c I get this error: S