[CMake] Static and DLL builds in single solution

2012-12-07 Thread Matt Campbell
Hi, I am quite new to CMake so forgive me if this has already been answered. My current build has a solution with several configurations, (debug, debugDLL, release, releaseDLL, etc.). I was able to add the custom configuration types to the generated VS solution but I am not sure how to tell CMa

[CMake] Xcode build attribute

2012-12-07 Thread Ambreen
How do I set a build attribute GCC_INPUT_FILE_TYPE for an xcode target. Ive tried set and add_definition but it always shows as "according yo file type" once the project is generated. Sent from my iPhone -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kit

[CMake] Question on ExternalProject_Add and different dependency directives

2012-12-07 Thread Bill Katz
Hi, I love the ExternalProject_Add module and use it extensively in an open-source build system I'm developing for our apps: http://github.com/janelia-flyem/buildem The idea is to make a build environment from source, using cached tarballs, and allow dif

Re: [CMake] Having trouble with component packaging

2012-12-07 Thread Trevor Clarke
That worked great! Thanks. On Fri, Dec 7, 2012 at 10:51 AM, Eric Noulard wrote: > > thus you should use: > set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) > -- Trevor R.H. Clarke Computer Science House Rochester Institute of Technology ret...@csh.rit.edu http://www.csh.rit.edu/~retrev/ -- Powered by

[CMake] problem with shortcut CPACK/NSIS

2012-12-07 Thread pellegrini
Dear all, I know that this issue has been raised several times but all the solution I tried failed up to now. We have a Fortran 90 project for which we would like to create a NSIS installer using CPACK. When installing the software we would like: - the PATH to be updated with the instal

Re: [CMake] Bug 13251 - failure extracting symbolic links from tarball on Windows

2012-12-07 Thread Kevin Burge
Already done. It's the only way I can build. Of course, this means maintaining two sets of settings for the ExternalProject: one filename/md5sum for Unix, and one for Windows. Thanks for the suggestion. At Fri, 7 Dec 2012 11:16:35 -0500, David Cole wrote: > > Maybe as a workaround for now, you

Re: [CMake] Bug 13251 - failure extracting symbolic links from tarball on Windows

2012-12-07 Thread David Cole
Maybe as a workaround for now, you could construct the tarball you want manually... one that avoids these errors until this is fixed. On Fri, Dec 7, 2012 at 9:21 AM, Kevin Burge wrote: > > I'm running into this problem with building an ExternalProject via a > tarball: > > CMake Error: Problem w

Re: [CMake] CPACK variable

2012-12-07 Thread Eric Noulard
2012/12/6 Stephen Rasku : > I am using cmake/cpack 2.8.9. We have cmake wrapped in Makefile. > CMAKE and CPACK are defined in the Makefile as the full path to the > respective executables. Cmake is expanding the cmake definition to > the full path but cpack doesn't include the full path. This is

Re: [CMake] Having trouble with component packaging

2012-12-07 Thread Eric Noulard
2012/12/7 Trevor Clarke : > cmake/cpack 2.8.8 on redhat6 > > I'm trying to generate multiple tar.bz2 files for diffeent componenents and > I'm having some problems...running "make package" yields a single tarball > with all files. Relevant parts of CMakeLists.txt are below. Also tried > setting CMA

[CMake] Having trouble with component packaging

2012-12-07 Thread Trevor Clarke
cmake/cpack 2.8.8 on redhat6 I'm trying to generate multiple tar.bz2 files for diffeent componenents and I'm having some problems...running "make package" yields a single tarball with all files. Relevant parts of CMakeLists.txt are below. Also tried setting CMAKE_MONOLITHIC_INSTALL 0 to no effect

[CMake] Bug 13251 - failure extracting symbolic links from tarball on Windows

2012-12-07 Thread Kevin Burge
I'm running into this problem with building an ExternalProject via a tarball: CMake Error: Problem with archive_write_header(): Can't create '\' I vote for just writing the original file, so at least the build can continue. 2.8.10.2 completely stops the build now upon this error. Thanks, Kevin

Re: [CMake] Determining debug & release configurations

2012-12-07 Thread Andreas Mohr
Hi, On Fri, Dec 07, 2012 at 04:01:27AM -0500, cmake-requ...@cmake.org wrote: > Date: Thu, 6 Dec 2012 11:54:42 -0600 > From: Robert Dailey > Does anyone have any code that can detect if a given configuration (by > name) is a debug or release configuration? This should work in both > single-config

Re: [CMake] Include_directories looks for Boost twice / Problem with if statement

2012-12-07 Thread Jakub Zakrzewski
Hi Did you think about something like this: ADD_DEFINITIONS (-DBOOST_ALL_NO_LIB) SET (BOOST_ROOT $ENV{BOOST_ROOT}) SET (Boost_NO_SYSTEM_PATHS ON) SET (Boost_USE_MULTITHREADED ON) SET (Boost_USE_STATIC_RUNTIME OFF) IF (TARGET parent) FIND_PACKAGE (Boost 1.42.0 REQUIRED COMPONENTS system) IF (Boos