[CMake] Prevent linebreaks in cmake output

2017-07-11 Thread Jason Majors via CMake
Is there a way to have each message from cmake appear on a single line? Currently my output seems to break like this: CMake Error: Error in cmake code at /path/to/CMakeLists.txt:48: Parse error. Function missing ending ")". End of file reached. I'm trying to parse the error messages in a program

[CMake] OBJECT libraries and working around lake of target_link_libraries

2017-07-11 Thread David Hunter
We recently converted some software, comprising about 300 projects, to use OBJECT libraries from SHARED libraries so we could create "conveneince" libraries that were cominations of some of the 300 projects. Not being able to use target_link_libraries with thier transitive nature made this very pai

[CMake] How do I specify VTK minimum version?

2017-07-11 Thread Victor Lamoine
Hi, I am using CMake to set up a VTK project. Our project requires VTK to be version 7.1 or newer. I'm using Ubuntu 16.04 with CMake 3.5.1. My CMakeLists.txt looks like this: cmake_minimum_required(VERSION 2.8) project(test_vtk_versions) find_package(VTK 7.1 REQUIRED) include(${VTK_USE_FILE})

Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-11 Thread Sean Wayland
Thanks Micha, The head developer managed to get it to compile under clion on the weekend, I suspect he may have cleaned up his source code a little bit. I also suspect listing the source code and targeted libraries in the correct order may have helped. Thanks for all your help! Best Sean On Mon, J

Re: [CMake] Cannot get a 64-bit build of MySQL on a 64-bit Windows machine

2017-07-11 Thread A.M. Sabuncu
J Decker, thank you. I honestly didn't even know of its existence. I ran it as you suggested, and it's great to be able to see all the flags. Thanks so much again. [image: Inline image 1] On Tue, Jul 11, 2017 at 1:50 PM, J Decker wrote: > Alternatively you could use cmake-gui and on first gen

Re: [CMake] Cannot get a 64-bit build of MySQL on a 64-bit Windows machine

2017-07-11 Thread J Decker
Alternatively you could use cmake-gui and on first generation in an empty directoy, a popup window appears allowing you to select the generator. mkdir build2 cd build2 cmake-gui .. then set the various flags in the gui. On Tue, Jul 11, 2017 at 3:13 AM, A.M. Sabuncu wrote: > Petr, > > Thank yo

Re: [CMake] Cannot get a 64-bit build of MySQL on a 64-bit Windows machine

2017-07-11 Thread A.M. Sabuncu
Petr, Thank you so much. The following command you suggested fixed the problem, and I was able to run a successful build: cmake .. -G "Visual Studio 15 2017 Win64" I am grateful for your help. This may have been a minor item for you, but for me, it was a real stumbling block. By the way, the

Re: [CMake] [DKIM] Re: cmake create executable Undefined symbols for architecture x86_64:

2017-07-11 Thread Zakrzewski, Jakub
From: CMake on behalf of Micha Hergarden Sent: 10 July 2017 21:22 To: seanwayl...@gmail.com Cc: cmake@cmake.org Subject: [DKIM] Re: [CMake] cmake create executable Undefined symbols for architecture x86_64: On 07-07-17 05:14, Sean Wayland wrote: > Hi M

Re: [CMake] Can not get C++ 11 support enabled

2017-07-11 Thread Petr Kmoch
As others have suggested, moving the add_executable() after the set() calls is the correct solution. The reason is that variables like CMAKE_CXX_STANDARD are used to pre-initialise a target's properties when the target is created. In other words, at the time add_executable() is called, CMake will

Re: [CMake] Cannot get a 64-bit build of MySQL on a 64-bit Windows machine

2017-07-11 Thread Petr Kmoch
Hi, when generating a Visual Studio buildsystem with CMake, you can specify the target architecture. If you don't, the default is 32-bit. To specify the architecture, either put it into the generator name: cmake .. -G "Visual Studio 15 2017 Win64" or specify just the architecture using -