Re: [CMake] C++11 flag not being added

2015-10-16 Thread Petr Bena
k, because these are usually hard to build. On Fri, Oct 16, 2015 at 11:56 AM, Hendrik Sattler wrote: > > > Am 16. Oktober 2015 11:29:48 MESZ, schrieb Petr Bena : >>I think you completely misunderstood me. I know I can install it on my >>machine, but I can hardly install it

Re: [CMake] C++11 flag not being added

2015-10-16 Thread Petr Bena
generally available everywhere. On Fri, Oct 16, 2015 at 11:26 AM, Pau Garcia i Quiles wrote: > Hello, > > CMake 3.3.1 is available from my PPA, in case it helps: > > https://launchpad.net/~pgquiles/+archive/ubuntu/ppa > > > > On Fri, Oct 16, 2015 at 10:58 AM, Petr Bena wro

Re: [CMake] C++11 flag not being added

2015-10-16 Thread Petr Bena
_STANDARD`) introduced in CMake version > 3.1, so you should require a minimum version >= that. > > You can learn the version of CMake by running `cmake --version` > > Petr > > On Thu, Oct 15, 2015 at 5:45 PM, Petr Bena wrote: >> >> What do you mean by "targe

Re: [CMake] C++11 flag not being added

2015-10-15 Thread Petr Bena
Matthew S Wallace wrote: > What version of CMake are you using? I’m using 3.3.2. The only other thing > I did was: > > set_property(GLOBAL PROPERTY CXX_STANDARD_REQUIRED) > > I’m guessing this probably does nothing since it is probably a target > property. > > -Matt

Re: [CMake] C++11 flag not being added

2015-10-15 Thread Petr Bena
Can you elaborate on it a bit? I put set(CMAKE_CXX_STANDARD 11) as first line of my CMakeLists and it still doesn't work, without the hack I used I get errors while compiling. Can you give me example file in which it works? I guess there is more needed for it to work. On Tue, Oct 13, 2015 at 7:1

Re: [CMake] C++11 flag not being added

2015-10-13 Thread Petr Bena
I would also like to know this, right now I do this and it works, but it produced warnings on MSVC, so I did this nasty patch: if(WIN32) if(MINGW) SET(CMAKE_CXX_FLAGS "-mwindows -std=c++11") endif() else() SET(CMAKE_CXX_FLAGS "-std=c++11") endif() however doing just the SE

Re: [CMake] Parallel builds

2015-09-16 Thread Petr Bena
{CMAKE_CXX_MP_NUM_PROCESSORS}") > 133 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} > /MP${CMAKE_CXX_MP_NUM_PROCESSORS}") > 134 ENDIF () > 135 ENDIF() > > Hope that helps, > Cory > > On Wed, Sep 16, 2015 at 11:44 AM, Petr Bena wrote: >> >> I know that I can pass

Re: [CMake] Parallel builds

2015-09-16 Thread Petr Bena
I know that I can pass -j parameter to GNU make as well as there is some sort of option to run MSVC compiler by hand and give that similar parameter, but that's not exactly what I want. I would prefer a way to get cmake to generate solution files for MSVC in a way that these options are enabled by

Re: [CMake] Parallel builds

2015-09-16 Thread Petr Bena
There is /MP compiler flag that I need to enable for every single project to be precise. On Wed, Sep 16, 2015 at 1:26 PM, Petr Bena wrote: > Hi, > > Is it possible to enable multithreaded builds by default in Visual > Studio projects? It seems that cmake generates the solution file

[CMake] Parallel builds

2015-09-16 Thread Petr Bena
Hi, Is it possible to enable multithreaded builds by default in Visual Studio projects? It seems that cmake generates the solution files in a way that they are forbidden, so even if global preference is to use multithreaded builds, the compiler never does that for sln files create by cmake, becaus

Re: [CMake] Change the default output path in Visual Studio

2015-03-30 Thread Petr Bena
d reset it back to what it was? RUNTIME_OUTPUT_DIRECTORY("WHAT DO I PUT HERE??") On Mon, Mar 30, 2015 at 3:31 PM, Nils Gladitz wrote: > On 03/30/2015 03:25 PM, Petr Bena wrote: >> >> I have following problem: >> >> I got a project with plugins, each plugin and core is a separa

[CMake] Change the default output path in Visual Studio

2015-03-30 Thread Petr Bena
I have following problem: I got a project with plugins, each plugin and core is a separate cmake project, however core includes all of them When I configure "core" it also configures all plugins and running "make" also make core, all libraries and plugins. My problem however is the default locat

Re: [CMake] How to use a multiline long string as a variable for CPACK_PACKAGE_DESCRIPTION_SUMMARY

2014-12-19 Thread Petr Bena
This must be some bug, I was trying to fill in something in there by hand and it's still empty, I will try to fill in a bug report On Fri, Dec 19, 2014 at 11:30 AM, Petr Bena wrote: > I am using this to build debian package and as > http://www.cmake.org/Wiki/CMake:CPackPackag

Re: [CMake] How to use a multiline long string as a variable for CPACK_PACKAGE_DESCRIPTION_SUMMARY

2014-12-19 Thread Petr Bena
, Dec 19, 2014 at 11:28 AM, Eric Noulard wrote: > > > 2014-12-19 11:25 GMT+01:00 Eric Noulard : >> >> >> >> 2014-12-19 11:22 GMT+01:00 Petr Bena : >>> >>> There is this variable that cpack uses for description of package. >>> This desc

[CMake] How to use a multiline long string as a variable for CPACK_PACKAGE_DESCRIPTION_SUMMARY

2014-12-19 Thread Petr Bena
There is this variable that cpack uses for description of package. This description has many lines and uses special symbols, like quotes. Putting it into a variable is extremely complex, so I would prefer to load it from external resource. I did this: FILE(READ "${CMAKE_CURRENT_SOURCE_DIR}/build/

Re: [CMake] How to add license

2014-12-18 Thread Petr Bena
INCLUDE(CPACK) must be on end, not on beginning :) On Thu, Dec 18, 2014 at 12:43 AM, Petr Bena wrote: > I am using cpack and license always show No license provided. > > I do have SET(CPACK_RESOURCE_FILE_LICENSE > "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt") and the file i

[CMake] How to add license

2014-12-17 Thread Petr Bena
I am using cpack and license always show No license provided. I do have SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt") and the file is there. Why is that? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/

[CMake] MinGW flags

2014-12-15 Thread Petr Bena
Hi, Is it possible to set a compiler flags only if compiler is MinGW (that means these flags wouldn't be set on MSVC). if (WIN32) matches both compilers obviously. Thanks -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FA

Re: [CMake] Linking a library that is made by cmake

2014-12-15 Thread Petr Bena
Mon, Dec 15, 2014 at 12:34 AM, Petr Bena wrote: >> >> I have a project: >> >> /Target A >> - CMakeLists.txt >> - /Target B >> -- CMakeLists.txt >> - /Target C >> -- CMakeLists.txt >> >> So, A is including B and C using add_subdirectory

[CMake] Linking a library that is made by cmake

2014-12-15 Thread Petr Bena
I have a project: /Target A - CMakeLists.txt - /Target B -- CMakeLists.txt - /Target C -- CMakeLists.txt So, A is including B and C using add_subdirectory. However, A is producing 2 targets, one of which is a library and I need to link B and C against that library. How would I do that? -- Power

Re: [CMake] Including another CMakeLists project

2014-12-10 Thread Petr Bena
> Parag Chandra > Software Engineer, Mobile Team > Mobile: +1.919.824.1410 > > <https://ionic.com> > > Ionic Security Inc. > 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 > > > > > > > > > > > > On 12/10/14, 9:42 AM, "Petr Bena" wr

[CMake] Including another CMakeLists project

2014-12-10 Thread Petr Bena
I have 3 projects, all using cmake. When I run cmake on each of them and separately build them, it's all fine. When I use include() on these 2 cmake files in 1 of them, so that I could run only 1 cmake and then build them all using 1 make, it fails. I believe that these 3 cmakes are colliding wit

[CMake] Problems with FindOracle

2014-11-14 Thread Petr Bena
Hi, I run cmake on windows for a project that needs oracle libraries, and I get this error: CMake Error at cmake/modules/FindOracle.cmake:92 (IF): if given arguments: "GREATER" "120" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:219 (FIND_PACKAGE) This looks