Re: [CMake] CMake library installations and pkg-config

2016-08-31 Thread nick
On 2016-08-31 23:32, Konstantin Tokarev wrote: 31.08.2016, 16:22, "Nick Appleton" : Hi, I’ve been recently doing a bit of work for an open source project trying to extend it’s support for CMake. I’ve been trying to get CMake to be able to replicate most of the functionality wh

[CMake] Mapping configurations and include_external_msproject()

2018-03-08 Thread nick
D_CONFIG_CONFIG.html Does anyone have any advice? Thanks! Nick -- 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 CMake community. For more information on each offering, pl

[CMake] Different behavior between building using "cmake --build" and building in Visual Studio

2019-01-20 Thread nick
the created solution and things would work, but it does not seem to be happening. Could anyone provide me with some information as to whether this is a bug in CMake or if I am missing something bigger here? Thanks! Nick -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

Re: [CMake] Different behavior between building using "cmake --build" and building in Visual Studio

2019-01-21 Thread nick
al Studio). I would have assumed that CMake would invoke msbuild/devenv on the created solution and things would work, but it does not seem to be happening. Could anyone provide me with some information as to whether this is a bug in CMake or if I am missing something bigger here? Thanks! Nick --

[CMake] include_extenal_msproject() dependency behavior change between 3.13.4 and 3.14.0-rc2 (possible bug in rc2)

2019-02-25 Thread nick
derstand if the behavior change is expected or if this is just a bug? Thanks! Nick Appleton -- 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 CMake community. For more inf

Re: [CMake] include_extenal_msproject() dependency behavior change between 3.13.4 and 3.14.0-rc2 (possible bug in rc2)

2019-02-26 Thread nick
"(" "CMAKE_CXX_COMPILER_VERSION" "VERSION_GREATER_EQUAL" "19.0.24215.1" "AND" "CMAKE_CXX_COMPILER_VERSION" "VERSION_LESS" "19.10" ")" "OR" "CMAKE_CXX_COMPILER_VERSION" "VERSION_GREATER_EQUAL" "19.1

[CMake] How to change CMake's expected output filename

2010-09-08 Thread Nick Foster
om CMake's expected output filename so it knows to look for myfile.rel. Should I create a custom command which moves myfile.rel to myfile.a51.rel? It seems unnecessarily Byzantine. Is there an easier way

[CMake] add_dependency on a custom target

2010-09-15 Thread Nick Davidson
xml files changes (e.g. a deletion) the cmake cache doesn't get regenerated and thus the xml files are not reglobbed and so the custom command fails. Any suggestions? Thanks, Nick Davidson __ This email has been scanned by

Re: [CMake] add_dependency on a custom target

2010-09-15 Thread Nick Davidson
Whoops, forgot to reply on list, sorry! > From: cmake-boun...@cmake.org > [mailto:cmake-boun...@cmake.org] On Behalf Of Andreas Pakulat > Sent: 15 September 2010 13:03 > To: cmake@cmake.org > Subject: Re: [CMake] add_dependency on a custom target > > On 15.09.10 12:34:43

[CMake] xcode project and static library dependencies

2011-01-13 Thread Nick Kledzik
effect of causing Xcode to re-evaluate the mod times of files, which in a way, compensates for missing static library dependency. I'd like to contribute to making the xcode project generator better, but would like to understand why the current implementation works as it

Re: [CMake] xcode project and static library dependencies

2011-01-13 Thread Nick Kledzik
when a static library that it depends on is > rebuilt. This is normal behavior for the Xccde build system. If one target depends on the product of another target, the build system follows the chain and builds everything needed for the target

Re: [CMake] xcode project and static library dependencies

2011-01-17 Thread Nick Kledzik
On Jan 13, 2011, at 1:57 PM, Bill Hoffman wrote: > On 1/13/2011 4:49 PM, Nick Kledzik wrote: >> On Jan 13, 2011, at 12:41 PM, Bill Hoffman wrote: >>> This is because Xcode provides no way to order static libraries as >>> far as I can tell, or to repeat them.

Re: [CMake] xcode project and static library dependencies

2011-01-18 Thread Nick Kledzik
locations are the "native" location where Xcode would put a build result. So, I need to create xcode projects that place/copy the resulting executables somewhere that cmake universe expects. Now I am wondering if I should add a copy-files-phase in the executable target to copy the

Re: [CMake] xcode project and static library dependencies

2011-01-18 Thread Nick Kledzik
uld put a > build result. So, I need to create xcode projects that place/copy the > resulting executables somewhere that cmake universe expects. > > Now I am wondering if I should add a copy-files-phase in the executable > target to copy the resulting binary to the build di

[CMake] CMake Library Issues

2009-02-03 Thread Nick Ogden
time.c varray.c) include_directories(${SERVER_SOURCE_DIR}/libmba) add_library(mba STATIC ${mba_SRC}) -- Any help would be greatly appreciated. Kin

Re: [CMake] CMake Library Issues

2009-02-04 Thread Nick Ogden
ould anyone tell me what the requirements are for static vs dynamic compilation? On Wednesday 04 February 2009 01:34:56 Matthew Woehlke wrote: > Nick Ogden wrote: > > Hi there, > > I see you found the right list ;-). > > (And I will admit I was lazy and didn't read it be

Re: [CMake] Fwd: Fwd: Is it necessary to link a executable file?

2009-02-04 Thread Nick Ogden
or this is a C++ error > > your source file is lacking the main() function thus > > the compiler cannot produce an executable. > > > > I bet that if you search for " undefined reference to `main' " on the Web > > you'll find the answer to such question

Re: [CMake] CMake Library Issues

2009-02-04 Thread Nick Ogden
t; > Please post that to the list. > > _ > Mike Jackson mike.jack...@bluequartz.net > BlueQuartz Softwarewww.bluequartz.net > Principal Software Engineer Dayton, Ohio > > On Feb 4, 2009, at 5:07 AM, Nick Ogden w

[CMake] Creation of Executable JAR

2009-02-20 Thread Nick Ogden
iated. Kind Regards -- Nick Ogden Email: n...@nickogden.net PGP: 2598FFE4 Web: www.nickogden.net signature.asc Description: This is a digitally signed message part. ___ Powered by www.kitware.com Visit other Kitware open-source projects at ht

[CMake] Converting implicit makefile rules

2009-07-06 Thread Nick Davidson
TARGET_FILE CPP XML) MakePot("project.pot" "${LIST1}" "${LIST2}") Is this behavior expected? I'm running Debian Lenny and Cmake 2.6-patch0 Thanks, Nick Davidson __ This email has been scanned by t

[CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Nick Bolton
Hello, I would like to build a Mac OS X Universal dmg using cpack, but currently we're building an i386 - how might we build universal instead? Here's our CPack config: http://code.google.com/p/synergy-plus/source/browse/trunk/cmake/CMakeLists_cpack

Re: [CMake] CPack - Mac OS X Universal dmg

2010-06-20 Thread Nick Bolton
gt; check this by just running the 'file' command on any of the > libraries/executables. Thanks, the change worked like a charm: http://code.google.com/p/synergy-plus/source/detail?r=649 Here's the new output: home-ws-5:release-1.3.6 nick$ file bin/synergyc

[CMake] Finding 32bit libs on 64bit Ubuntu install

2016-04-22 Thread Nick Deubert
far. I am using cmake 3.0.2. Please let me know what I am missing. Thanks in advance for your help. Nick The relevant part of my cmake file: Set(CFLAGS "-m32") Set(CXXFLAGS "-m32") Set(CMAKE_C_FLAGS "-m32") Set(CMAKE_CXX_FLAGS "-m32") Se

Re: [CMake] Finding 32bit libs on 64bit Ubuntu install

2016-04-25 Thread Nick Deubert
On Fri, Apr 22, 2016 at 5:08 PM, Alan W. Irwin wrote: > On 2016-04-22 14:59-0400 Nick Deubert wrote: > >> Hey everyone, I am trying to build and link some 32bit binaries on >> Ubuntu 15.10 64bit, but no matter what combination of arguments I give >> FIND_LIBRARY I cannot

Re: [CMake] Finding 32bit libs on 64bit Ubuntu install

2016-04-25 Thread Nick Deubert
On Mon, Apr 25, 2016 at 4:01 PM, Alan W. Irwin wrote: > On 2016-04-25 14:06-0400 Nick Deubert wrote: > >> On Fri, Apr 22, 2016 at 5:08 PM, Alan W. Irwin >> wrote: >>> >>> On 2016-04-22 14:59-0400 Nick Deubert wrote: >>> >>>> Hey every

[CMake] CMake library installations and pkg-config

2016-08-31 Thread Nick Appleton
() function, but I am struggling to find a way to: given a CMake target, create a variable containing the set of linker paths and library names to use in the pkg-config file. Can anyone give me some hints as to whether this is possible? Cheers, Nick -- Powered by www.kitware.com Please keep messages

[CMake] Question regarding CUDA support in CMake 3.8.0-rc2

2017-03-15 Thread Nick Henderson
nk to sample project: https://github.com/nwh/foobar Questions: * Is this a problem? * What is the purpose of cmake_device_link.o? Thanks, Nick -- View this message in context: http://cmake.3232098.n2.nabble.com/Question-regarding-CUDA-support-in-CMake-3-8-0-rc2-tp7595171.html Sent from the CMake

Re: [CMake] Question regarding CUDA support in CMake 3.8.0-rc2

2017-03-16 Thread Nick Henderson
Thank you! Setting: set(CMAKE_CUDA_FLAGS "-arch compute_30 ${CMAKE_CUDA_FLAGS}") did the trick. Is there any documentation or example projects related to the new CUDA support? CUDA support is great to have and will simplify my build system! Thank you. -- View this message in context: http

[CMake] QT4_ADD_RESOURCES not creating cpp on Mac OS X

2006-10-23 Thread Nick Arini
everything worked as expected (the qrc_icons.o file is created) and the exe runs with the images. So is this a problem with the FindQt4 module on MacOS X or do I need to do something extra on Mac? I have the RCC exe in my path and it produces the expected output when I run it manuall

[CMake] Patch: Add EXCLUDE_FROM_ALL to install() command

2014-05-15 Thread Lewis, Nick
installation. Best Regards Nick Nick Lewis nick.le...@usa.g4s.com<mailto:nick.le...@usa.g4s.com> +44 1684 277137 www.g4stechnology.com<http://www.g4stechnology.com/> New Challenge House, International Drive, Tewkesbury, Gloucestershire, GL20 8UQ, UK P Please consider the environment bef

[CMake] install target added with add_subdirectory(EXCLUDE_FROM_ALL)

2015-04-15 Thread Nick Tasios
Hello everyone, I recently started using cmake and I'm having some trouble setting-up my project. I've searched quite a lot and couldn't find a clear answer. The project has a top level CMakeLists.txt which builds the executable. In my project, I have included external libraries which I add

[CMake] How to link the output of a custom command (VS2013) when the output is an obj file, since LinkObjects is hardcoded to false?

2015-09-02 Thread Nick Georghiou
Hi, I have the custom command provided below which successfully creates mydll.obj in the correct intermediate directory. However the LinkObjects property of the custom command within Visual Studio 2013 is set to false and therefore the object file is not linked. Upon inspection of the CMake cod

Re: [CMake] How to link the output of a custom command (VS2013) when the output is an obj file, since LinkObjects is hardcoded to false?

2015-09-02 Thread Nick Georghiou
Hi, Thanks for the quick reply. I enabled asm language and it now links. Apologies for the noob question; Thanks Nick From: Hendrik Sattler [mailto:p...@hendrik-sattler.de] Sent: Wednesday, 2 September 2015 8:13 PM To: ngeorgh...@iprimus.com.au; cmake@cmake.org Subject: Re

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
Try again with this example: http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake On 2012-08-08, at 12:52:06 , Sumit Adhikari wrote: > I am searching boost like as follows : > > # Boost Library Search > find_package (Boost) > if (Boost_FOUND) > include_dire

Re: [CMake] Boost

2012-08-08 Thread Nick Overdijk
he reply. But is this is a Bug ? > > > Regards, > Sumit > > > On Wed, Aug 8, 2012 at 1:28 PM, Nick Overdijk wrote: > >> Try again with this example: >> >> >> http://stackoverflow.com/questions/3897839/how-to-link-c-program-with-boost-using-cmake &g

Re: [CMake] Incoherent compiler detection in MacOSX 10.7.4

2012-10-03 Thread Nick Overdijk
I'm not sure where it was, but CMake prefers gcc over cc, and cxx over g++. You can force it by setting CC=clang. On 2012-03-10, at 09:27:28 , Pere Mato Vila wrote: > In my Mac system (10.7.4) with Xcode (4.4.1) CMake finds by default the GNU > compiler for C and Clang for C++. This posses pro

Re: [CMake] Bug fix requests for the *next* release of CMake...

2012-11-11 Thread Nick Hutchinson
http://public.kitware.com/Bug/view.php?id=13574 On 8/11/2012, at 5:39 PM, cmake-requ...@cmake.org wrote: > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > David Cole > Sent: mercredi 7 novembre 2012 20:41 > To: cmake; CMake Developers > Subject: [CMake] Bug fix req

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
Aren't you the one generating those names? http://www.swig.org/Doc1.3/Introduction.html#Introduction%5Fbuild%5Fsystem On 2012-28-11, at 01:11:24 , Miller Henry wrote: > Our normal coding standards requires zero warnings with –wall –wextra > (gcc/clang), but often the swig generated file has wa

Re: [CMake] swig - how do I set compile flags on the generated files?

2012-11-27 Thread Nick Overdijk
I had a derp, sorry about that. Obviously you don't, hah. You can put all the swig-generated files in a directory, and then perhaps set the properties with a glob? On 2012-28-11, at 02:22:00 , Nick Overdijk wrote: > Aren't you the one generating those names? > > http://

Re: [CMake] cmake system library

2013-01-12 Thread Nick Overdijk
You could install boost to /usr/local if you're on linux/OSX? That's the standard location for non-system libs, CMake-Modules will look there. On 2013-12-01, at 13:04:50 , peterle oberwi wrote: > Hi, > > I want to use Boost library in my project. But there is one version installed > in the sys

[CMake] CMAKE_INCLUDE_SYSTEM_FLAG_CXX set to -I by default?

2013-01-12 Thread Nick Overdijk
When I use include_directories(SYSTEM $path), it still includes stuff with -I. Through http://stackoverflow.com/questions/3371127/use-isystem-instead-of-i-with-cmake I found out I should change some variable, but this seems like a bug in CMake? -- Powered by www.kitware.com Visit other Kitwar

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
I use add_subdirectory to add bullet and sdl.. Could you try that? I've never worked with ExternalProject_Add and wouldn't really know what it does. On 2013-20-01, at 22:26:44 , Ansis Māliņš wrote: > The line > ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) > fails with > Install the p

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
You don't use find_package when add_subdirectory, just target_link_library(). I'm not sure if this is frowned upon or not, but it does work, and shouldn't change that often or anything. Strictly speaking it's a bit dirty though. Thing is, why is bullet build by you? Do you need it in this repos

Re: [CMake] CLANG_CXX_LIBRARY

2013-01-24 Thread Nick Overdijk
CXXFLAGS= cmake or cmake -DCMAKE_CXX_FLAGS="" On 2013-24-01, at 13:02:58 , ambreen haleem wrote: > Hi, > > I want to set clang_cxx_library parameter in cmake. Does not seems to be > working by passing through linker. Is there a way I can do that? > > Regards > Ambreen > -- > > Powered by

Re: [CMake] CMAKE__COMPILER_ID not set on Darwin

2013-01-30 Thread Nick Overdijk
We use this if(CMAKE_C_COMPILER MATCHES "clang" OR CMAKE_CXX_COMPILER MATCHES "clang") set(COMPILING_WITH_CLANG True) elseif(CMAKE_C_COMPILER MATCHES ".*gcc.*" OR CMAKE_CXX_COMPILER MATCHES ".*g[+][+].*") set(COMPILING_WITH_GCC True) endif() In our project On 2013-30-01, at 14:4

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
Can't you only launch parent.exe in VS and remove the dependency? On 2013-08-02, at 12:19:56 , Andreas Haferburg wrote: > In our build, we have two executables, parent.exe launches child.exe as a > child process. ATM the build is set up with add_dependencies(parent child). > So when using F5 in

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
; rebuilt, too. > > Andreas > > > On 08.02.2013 12:21, Nick Overdijk wrote: >> Can't you only launch parent.exe in VS and remove the dependency? >> >> On 2013-08-02, at 12:19:56 , Andreas Haferburg wrote: >> >>> In our build, we have two exec

Re: [CMake] Dependency for launching an application

2013-02-08 Thread Nick Overdijk
I'm probably missing something, but why > add_dependencies(parent child) ? That doesn't make sense. Parent is not using anything from child. You can just leave that line away and everything will be fine right? On 2013-08-02, at 16:24:21 , Andreas Haferburg wrote: > Yes, that's pretty much the

Re: [CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Nick Overdijk
I don't really get your specific problem... CMake can find and install ITK and DCMTK just fine here? (I had to manipulate the linker-order of DCMTK a bit but that's almost to be expected, sadly). You're saying that when you find_package(DCMTK) it's libraries doesn't include some library it need

Re: [CMake] Best way to 'pull through' dependencies of External projects?

2013-02-14 Thread Nick Overdijk
So patch FindDCMTK/FindTIFF in such a way that it add zlib to the dependencies, use that, and send the patch to your local maintainer? On 2013-14-02, at 17:01:53 , Kent Williams wrote: > @Nick find_package(DCMTK) does an OK job. The specific issue I ran into is > that TIFF depends on Zl

Re: [CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Nick Overdijk
"Dakon", Don't know his real name, sorry, wrote something for this, you can get it here: git://anongit.kde.org/scratch/dakon/cmake-cxx11 On 2013-20-02, at 01:17:28 , Alexey Petruchik wrote: > Hi, I'm doing this by adding: > set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS > "@executable_path/

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Nick Overdijk
You should install boost in /usr/local with ./b2 install, then more packages will find it. Did you do this or not? Anyway, I just did this: git clone git://github.com/SOCI/soci.git cd soci cd src mkdir build cd build cmake .. And it worked for me. So what did you do exactly? On 2013-14-03, at

Re: [CMake] Build several targets using cmake --build

2013-03-14 Thread Nick Overdijk
You can only 'cmake' a single-target. If you want to have more targets, create more directories: for each target one. On 2013-14-03, at 19:07:36 , John Drescher wrote: >> I use cmake 2.8.10 on windows. >> >> >> >> I would like to build several targets with cmake --build so the >> underlying

Re: [CMake] FInd threads - iOS

2013-03-14 Thread Nick Overdijk
LUDE_DIR-NOTFOUND > -- DB2_LIBRARIES= DB2_LIBRARY-NOTFOUND > -- Configuring SOCI core library: > -- Looking for include file pthread.h > -- Looking for include file pthread.h - not found > -- Could NOT find Threads (missing: Threads_FOUND) > CMake

[CMake] Updated code in header file ignored?

2013-03-17 Thread Nick Overdijk
motor/CMakeFiles/motor.dir/CXX.includecache:1224:vertices.hpp ./motor/CMakeFiles/motor.dir/CXX.includecache:1225:/Users/nick/Documents/Code/new-onegame/motor/basic/vertices.hpp ./motor/CMakeFiles/motor.dir/CXX.includecache:1241:/Users/nick/Documents/Code/new-onegame/motor/basic/vertices.hpp ./motor/CMake

[CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
. Many thanks for any hint, Nick Gnedin -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe

Re: [CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
for code, so they end up included twice. On 04/22/2013 01:50 PM, Jean-Christophe Fillion-Robin wrote: Hi Nick, What about creating a static library that would be linked against both the executable and the library ? Hth Jc On Mon, Apr 22, 2013 at 2:45 PM, Nick Gnedin mailto:ngne...@gmail.com

Re: [CMake] Sharing sources between two targets

2013-04-22 Thread Nick Gnedin
an make it. (Assuming a release build, where the linker leaves out what it doesn't need...) -Original Message- From: Nick Gnedin Cc: CMake ML Sent: Mon, Apr 22, 2013 2:55 pm Subject: Re: [CMake] Sharing sources between two targets That doubles the size of the executable,

Re: [CMake] find_package(mpi) language specification

2013-09-05 Thread Nick Overdijk
You can pass the QUIET parameter to find_package... that'll at least shut it up. Perhaps easiest in your case. On 2013-05-09, at 18:22:25 , Andrew Corrigan wrote: > Hello, > > My C++ code only uses the MPI C library. > > 1. Is there a way to tell find_package(MPI) to only look for the C versi

Re: [CMake] Faking a library

2013-10-19 Thread Nick Hutchinson
GTEST_INCLUDE_DIRS, GTEST_LIBRARIES etc. It's really quite nice. Check the 2.8.12 CMake docs for target properties that start with "INTERFACE". Nick On 19 October 2013 08:59, Magnus Therning wrote: > On Sat, Oct 19, 2013 at 11:28:53AM +0400, Игорь Пашев wrote: > > 2013/10/19 Ma

Re: [CMake] cmake-2.8.12: generator expression error when linker flags have comma

2013-10-20 Thread Nick Hutchinson
target_link_libraries() is supposed to work for linker flags as well: cmake version 2.8.12 target_link_libraries Link a target to given libraries. target_link_libraries( [item1 [item2 [...]]] [[debug|optimized|general] ] ...) Specify librar