Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread iosif neitzke
If this [0] is the current code, I also could not get it to build on Xubuntu 15.10. FindPkgConfig.cmake failed with "package 'glfw3' not found" at line 506 (_pkg_check_modules_internal). Running pkg-config --modversion glfw3 returns 3.1.1. [0] https://github.com/openglsuperbible/sb7code On We

Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread DJ
My bad. Just in case the original author of the OpenGL SuperBible should happen to read this: The problem was that I was using an old codebase - one for the previous edition of the book. The current one IS properly set up. So, now I need to send myself to bed without supper. Sigh. Best, -

Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread DJ
Ok, I found the problem. First (facepalm), the spot where libraries are defined is now pretty obvious to me. Anyway, the original author included tests for systems WIN32, UNIX, and APPLE in CMakeLists.txt. None of these matched for my Linux Mint system, apparently, so I just edited the file to

Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread DJ
On 15-12-16 10:53 PM, J. Caleb Wherry wrote: (forgot to reply-all) First: looks like you aren't doing an out-of-source build. If OpenGL expects an out-of-source build (not sure if it does), then you need to do it that way otherwise things could get screwy: $ mkdir build $ cd build $ cmake

Re: [CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread J. Caleb Wherry
(forgot to reply-all) First: looks like you aren't doing an out-of-source build. If OpenGL expects an out-of-source build (not sure if it does), then you need to do it that way otherwise things could get screwy: $ mkdir build $ cd build $ cmake ${SRC_ROOT} $ make VERBOSE=1 Second, the VERBOSE op

[CMake] Link errors - can I get more verbose messages?

2015-12-16 Thread DJ
I recently purchased the OpenGL SuperBible ed. 7. I downloaded the sample code and tried to build it. This is my very first exposure to cmake; I am reading through the documentation and did a quick scan of the gmane archive but cannot seem find an answer to my question. (Probably my fault; my

[CMake] How can I export source code that needs to be built by downstream projects?

2015-12-16 Thread Miller Henry
I'm using cmake to build a set of libraries that then gets packaged and shipped to other groups that are also using cmake to use the library. Since I use google mock to mock my libraries, and the downstreams also want to mock my library I just provide the mock header for their use. This works

Re: [CMake] Generate sources

2015-12-16 Thread Mark Stijnman
On Wed, Dec 16, 2015 at 2:29 PM, Layus wrote: > Hi, > > I am looking for a way to share an archive of a partially compiled project > to speedup compilation time and configuration hassle for the users. > > I have a project that works in two steps. > First a source generator is built (based on clan

[CMake] Generate sources

2015-12-16 Thread Layus
Hi, I am looking for a way to share an archive of a partially compiled project to speedup compilation time and configuration hassle for the users. I have a project that works in two steps. First a source generator is built (based on clang) and generates some extra source files based on the ex