[CMake] NMake + Compiler wrapper

2012-06-18 Thread Roland Schulz
Hi, should it work to use the NMake generator with a compiler wrapper like mpicc? If I try to use the mpicc from OpenMPI 1.6 it doesn't work (see below for messages). This is with cmake 2.8.8 and both with standard nmake and nmake-jom. It works fine without the wrapper and it also works find to co

Re: [CMake] Using the Microsoft compiler with "Unix Makefiles"

2012-06-18 Thread William R. Otte
Hi Brendan - On Jun 18, 2012, at 11:49 PM, Braden McDaniel wrote: > Is it possible to use the Microsoft compiler (cl) with "Unix Makefiles"? > > I found some older list postings that suggested it could work; however, > setting CC, CXX, and CMAKE_CXX_COMPILER to "cl" doesn't do the trick. (It

[CMake] Using the Microsoft compiler with "Unix Makefiles"

2012-06-18 Thread Braden McDaniel
Is it possible to use the Microsoft compiler (cl) with "Unix Makefiles"? I found some older list postings that suggested it could work; however, setting CC, CXX, and CMAKE_CXX_COMPILER to "cl" doesn't do the trick. (It appears that the compiler doesn't like some of the flags used in the makefi

Re: [CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Jean-Christophe Fillion-Robin
Hi Michael, To apply the flag on a specific target, consider looking at: https://github.com/commontk/Log4Qt/blob/patched/CMakeLists.txt#L116 Hth Jc On Mon, Jun 18, 2012 at 8:23 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > Thanks everyone for the help. I really have a typo in my C

Re: [CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Michael Jackson
Thanks everyone for the help. I really have a typo in my CMake code so thanks for every one for finding that. Basically we build a few libraries which other parts of our code depend on. One particular library has to be a shared library but links statically to the other libraries in order to avoi

Re: [CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Mathias Gaunard
On 18/06/2012 23:09, Michael Jackson wrote: Linux really wants to have -fPIC for some of my code and I am trying to detect linux and then add this flag for my project but I am having no luck. if (LINUX) set(CMAKE_CXX_FLAGS ${CMAKE_CSS_FLAGS} "-fPIC") endif() Is this NOT the way I shoul

Re: [CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Alain Leblanc
Starting to dislike the gmail program. So here's a corrected message , to the list this time: === This is how I've been doing for years. Doesn't mean it's the right way :) Here -O3 and -DLINUX don't apply to your case, and ${SRC_FILES} has been assigned wi

Re: [CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Fraser Hutchison
I'm not a Linux guy, so hopefully someone else more knowledgeable can chime in here, but if you want to add to your CMAKE_CXX_FLAGS, you need to avoid creating a semi-colon-separated list by moving the quote mark: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

[CMake] Accepted way to add "-fPIC" onto CMAKE_CXX_FLAGS?

2012-06-18 Thread Michael Jackson
Linux really wants to have -fPIC for some of my code and I am trying to detect linux and then add this flag for my project but I am having no luck. if (LINUX) set(CMAKE_CXX_FLAGS ${CMAKE_CSS_FLAGS} "-fPIC") endif() Is this NOT the way I should be doing this? It doesn't really "fell" corr

Re: [CMake] help with shared-lib make failure

2012-06-18 Thread Andreas Naumann
Am 18.06.2012 08:34, schrieb luxInteg: On Sunday 17 June 2012 14:13:00 Andreas Naumann wrote: #--build2: gs_test/results.c. build disabled near beginning but comes in ~65% of build [ 65%] Building C object Lib/CMakeFiles/gsl.dir/__/test/results.c.o cd /home/TESTS/BUILDgsl/Lib&

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Ben Medina
That's right. You can pass various initial cache entries, such as BOOST_ROOT, via the CMAKE_CACHE_ARGS parameter to ExternalProject_Add. A useful example of this is the Titan project: http://www.kitware.com/InfovisWiki/index.php/Main_Page You can see how it builds VTK as an external project, forci

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Knox, Kent
I'll check out the reference to b2, thanks for the heads up. My own project is hosted with SVN, not GIT, so I did not want to require my developers to find and install a git client to get the build to work; that is why I wanted to choose the zipball. -- Messag

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Bill Hoffman
On 6/18/2012 2:03 PM, Knox, Kent wrote: That is an interesting approach; if this 'superbuild' cmake project downloaded and built all the external dependencies first, then my project could find those dependencies with the appropriate find module? I suppose that the 'superbuild' could set the BOOS

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Knox, Kent
That is an interesting approach; if this 'superbuild' cmake project downloaded and built all the external dependencies first, then my project could find those dependencies with the appropriate find module? I suppose that the 'superbuild' could set the BOOST_ROOT variable (or other appropriate v

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Ben Medina
> 4. ExternalProject_Add will download, configure and build projects at > ‘build’ time. From the documentation, this sounded like a design decision. > However, this means that you can’t use the already robust and mature > findboost() module to configure the Boost project. Would it be possib

Re: [CMake] cpack DEB generator docs

2012-06-18 Thread Eric Noulard
2012/6/18 Doug : > Yeah, I really should. :) > > Is this ok? Or shall I create a bug and attach the patch to that? (attach > patch; it's very minor; just missing 3 of the variables) It's ok and pushed to next. Merge topic 'CPackDeb-docUpdate' into next 264c156 CPackDeb add missing documentation

[CMake] Setting the command Clean executes

2012-06-18 Thread Petr Kmoch
Hi all, is it possible to somehow set the command which 'make clean' or 'Build->Clean in VS' performs for a file? My situation is that a custom command creates a symlink to a directory. I'd like to delete this symlink when 'Clean' is performed. This fails silently on Unix (no action is performed)

Re: [CMake] ExternalProject_Add and Boost

2012-06-18 Thread Mathias Gaunard
On 18/06/2012 08:42, Knox, Kent wrote: BUILD_COMMAND bjam --with-program_options address-model=64 toolset=msvc-11.0 link=static stage Two comments here: - bjam has been renamed to b2 since Boost 1.47 - this probably uses the bjam/b2 in the path, rather than the one that you just built with

Re: [CMake] cpack DEB generator docs

2012-06-18 Thread Doug
Yeah, I really should. :) Is this ok? Or shall I create a bug and attach the patch to that? (attach patch; it's very minor; just missing 3 of the variables) doug@shadowmint:~/ext/cmake$ ./bin/cpack --help-variable-list |grep DEB <-- All in there now~ CPACK_RPM_PACKAGE_DEBUG CPACK_DEBIAN_PACKAGE_A

Re: [CMake] cmake as pkg-config replacement has problems?

2012-06-18 Thread Hendrik Sattler
Am 2012-06-17 14:39, schrieb Alexander Neundorf: I consider this feature still experimental, it needs users (like you) to actually figure out whether it is real-world useful. Can you open a ticket for this please in the tracker ? Filed as issue #13311. IMHO, for a real pkg-config replacement,