Re: [CMake] Custom installation of cmake

2019-10-20 Thread Raymond Wan
Hi Mahmood, Did you try typing "./bootstrap --help"? Perhaps something there is what you need? Ray On Sun, Oct 20, 2019 at 2:19 AM Mahmood Naderan via CMake wrote: > > OK and how about custom installation path of cmake? > > > Regards, > Mahmood -- Powered by www.kitware.com Please keep me

[CMake] Fwd: Linking GSL to cmake using command line

2019-09-24 Thread Raymond Wan
ectly about your problem. Ray -- Forwarded message - From: Raymond Wan Date: Wed, Sep 25, 2019 at 12:52 AM Subject: Re: [CMake] Linking GSL to cmake using command line To: Sachithra Weerasooriya Hi Sachi, Then, to be frank, it's not something that CMake's users can help you with. I

Re: [CMake] Linking GSL to cmake using command line

2019-09-24 Thread Raymond Wan
Hi Sachi, Unfortunately, the short answer is "no". I think you misunderstand what CMake is. One way to summarise it is that it allows developers of programs to describe/explain how to compile and link software. For example, suppose there is a program X and it uses the GSL library. A programmer

Re: [CMake] complication issue

2019-03-18 Thread Raymond Wan
tput differs and doesn't work when build using cmake generated > Makefile. > > On Mon, 18 Mar 2019 at 20:42, Raymond Wan wrote: >> >> >> Hi Ali, >> >> >> On 18/3/2019 1:52 PM, Ali Angle wrote: >> > Issue is described over here: >> >

Re: [CMake] complication issue

2019-03-18 Thread Raymond Wan
Hi Ali, On 18/3/2019 1:52 PM, Ali Angle wrote: Issue is described over here: https://stackoverflow.com/questions/55211221/cmake-build-problem-when-building-code-for-avr I'm not too sure what you're talking about in this posting, but I am also not too familiar with AVR. At the beginning

Re: [CMake] Automatically updating Doxygen documentation and making it readily available to users with CMake

2019-02-21 Thread Raymond Wan
Hi Timothy, This is not something I'm very familiar with, but maybe I can still add a little to the discussion by answering both of your messages together. On 21/2/2019 10:18 PM, Timothy Wrona wrote: Perhaps there is a standard location to "install" the documentation when running the insta

Re: [CMake] My previous message

2018-11-04 Thread Raymond Wan
On 4/11/2018 4:01 PM, Osman Zakir wrote: I tried to do it before, but it won't let me clone the repository without sudo for some reason. I have little experience with Docker -- actually, none. But as several people have hinted to you already, this doesn't seem like a CMake issue. For e

Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

2018-10-30 Thread Raymond Wan
Hi Osman, On 30/10/2018 6:56 PM, Osman Zakir wrote: Okay, thanks. So how about this as the command? " RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \     && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​     && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​     &

Re: [CMake] Ubuntu package versioning

2017-12-18 Thread Raymond Wan
Hi Alexander, On Tue, Dec 19, 2017 at 11:39 AM, Alan W. Irwin wrote: > On 2017-12-18 19:14-0500 wrote: > >> I'm not sure who maintains the Ubuntu cmake package, but I *just* >> installed >> it, and cmake --version reported 3.5.1... a little bit out of date. > > > If you look at >

Re: [CMake] Making existing, compiled projects CMake aware

2017-11-18 Thread Raymond Wan
Hi Johannes, On Wed, Nov 15, 2017 at 8:50 PM, Johannes Zarl-Zierl wrote: > Before starting, it might be a good idea to update your knowledge about modern > C++. A good starting point is the "Modern CMake" talk by Daniel Pfeiffer, > especially the part about how to add and link to libraries: > ht

Re: [CMake] Using CMake for general scripting tasks?

2017-11-14 Thread Raymond Wan
Hi Sebastian, On Tue, Nov 14, 2017 at 8:39 AM, Sebastian Gniazdowski wrote: > So I think this project confirms CMake's potential for handling general > scripting tasks. However, it's hard to get some inspiration from Hunter, it's > just a large collection of CMake packages focused on one speci

Re: [CMake] my first experiences

2017-06-09 Thread Raymond Wan
Hi Xen, On Fri, Jun 9, 2017 at 3:40 PM, Xen wrote: > I just want to tell you what terrible software CMake is. > > The newest version won't compile on my system. The bootstrapping just won't > complete. Just out of curiosity but is there any reason why you need the "latest version"? I usually

Re: [CMake] Does Makefile generated by CMake support make -jN?

2016-07-12 Thread Raymond Wan
Hi Chao, On Wed, Jul 13, 2016 at 10:54 AM, Chaos Zhang wrote: > I was trying to compile my project using CMake, after CMake generated > Makefile. > I used `/usr/bin/time -v make` to make the Makefile, got the result: > 'Percent of CPU this job got: 96%'. > Then i used `/usr/bin/time -v make -j8

Re: [CMake] Compiling binaries with cmake -- help

2016-07-03 Thread Raymond Wan
On Sat, Jul 2, 2016 at 7:38 PM, Crest Christopher wrote: > Hi, thanks but I really want to compile it myself ;-) I hope someone can > help ! To be honest, you really should contact the original developers for help with dependencies and compiling. Not only are they the experts with their own pro

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-30 Thread Raymond Wan
Hi Sven, On Thu, Jun 30, 2016 at 6:40 PM, Sven Baars wrote: > So let's take Trilinos as an example, which is quite a big library, > which depends on a lot of libraries as well. In every project that > builds upon it (but does not even use functionality of any libraries), > we would have to set:

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-30 Thread Raymond Wan
Hi Sven, On Thu, Jun 30, 2016 at 4:59 PM, Sven Baars wrote: > This is a reply to the options that Ray gave. Here I will use the > package dependencies C -> B -> A{1,2}: Well, I presented some options to you. Perhaps there are others, but if none of them are right for you then there's nothing

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
On Wed, Jun 29, 2016 at 3:23 AM, Cfyz wrote: > On 28 June 2016 at 17:19, Raymond Wan wrote: >> I think if I were presented with the same problem as Sven, I'd <...> Or, >> if that wasn't possible, use ExternalProject. >> It's inefficient in terms

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi, On Tue, Jun 28, 2016 at 8:41 PM, Cfyz wrote: > dependencies' locations. Personally I do not agree with that as I see > neither any way around specifying paths to dependencies not any substantial > harm in that. Maybe I am missing something but as far as I've found there > was not discussion

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi Sven, On Tue, Jun 28, 2016 at 6:03 PM, Sven Baars wrote: > The packages I use are installed in a non-standard path, because I don't > have access to the system directories on most systems I work on, but are > used by many other libraries. They are also all separate packages, not > packages in

Re: [CMake] How do you handle recursive dependencies in CMake

2016-06-28 Thread Raymond Wan
Hi Sven, On Tue, Jun 28, 2016 at 5:26 PM, Sven Baars wrote: > Hey all, > > Since I did not receive a reply to my previous mail, I decided to write a > minimal example explaining my problem, where I kept al the names as I used > in my previous mails. I hope that after seeing my example, someone c

Re: [CMake] CPack with BZIP2 is a lot slower than GNU tar

2016-06-01 Thread Raymond Wan
Hi, On Wed, Jun 1, 2016 at 8:26 PM, Alessio wrote: > Is anyone else having problems with the speed of cpack? > > Out of one of our code bases we produce two packages on Linux using the > BZIP2 generator with CMake 3.4.0. I provide a few stats on the packages > below. They are not particularly fa

Re: [CMake] CMake download blocked by Google Chrome

2016-04-10 Thread Raymond Wan
Hi Matthew, On Sun, Apr 10, 2016 at 10:45 PM, Matthew Rule wrote: > Ok thanks for the responses. I will go ahead with the download in that case. > Sorry if the question was a little offtopic for this mailing list, I see > it's mostly technical discussion. ...I don't know. Your query could be

Re: [CMake] CMake download blocked by Google Chrome

2016-04-10 Thread Raymond Wan
Hi Matthew, On Sun, Apr 10, 2016 at 10:25 PM, Matthew Rule wrote: > When trying to download cmake-3.5.1-win32-x86.msi from > https://cmake.org/download/ I received the following message: > https://i.gyazo.com/6cf9cd56e9cf1f513f649cf59f768241.png > > I'd assume that this message is displayed to m

Re: [CMake] Visual C++ for Linux

2016-03-30 Thread Raymond Wan
Hi Lloyd, On Thu, Mar 31, 2016 at 12:40 PM, Lloyd wrote: > Hi, > > Microsoft announced Visual C++ for Linux. Would CMake support this? > > https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-for-linux-development/ > > Thanks, > Lloyd Interesting developments but looking at the blog e

Re: [CMake] Shared library for a executable

2016-01-25 Thread Raymond Wan
Hi Gonzalo, On Mon, Jan 25, 2016 at 5:22 PM, Gonzalo wrote: > > > El 22/01/16 a las 10:50, Raymond Wan escribió: >> >> Hi Gonzalo, >> >> I recently tried doing this and wrote it up as a record for myself. >> Of course, I don't know if it's th

Re: [CMake] Shared library for a executable

2016-01-25 Thread Raymond Wan
Hi Tamás, On Mon, Jan 25, 2016 at 7:02 PM, Tamás Kenéz wrote: > Gonzalo, Ray, > > I think your approaches are not in accordance with some CMake best practices > (or at least what I believe they are). Thank you for looking over my web site! I welcome comments since I am learning as I go along

Re: [CMake] Shared library for a executable

2016-01-22 Thread Raymond Wan
Hi Gonzalo, On Fri, Jan 22, 2016 at 1:49 AM, Gonzalo wrote: > I have the need to have a shared library be created and then this same > library be accessed by my executable. > I want both to remain in different sibling directories and have one main > CMakeList.txt that would call the other two C

Re: [CMake] Are the poor reviews of Mastering CMake Justified?

2015-12-21 Thread Raymond Wan
Hi Jake, On Sat, Dec 19, 2015 at 5:02 AM, DJ wrote: > This all led me to consider purchasing the book Mastering CMake. However, > reviews on Amazon are generally very critical of the book. It is indeed > expensive. Should I bother to shell out for it, or do others here share this > negative eval

Re: [CMake] organizing includes statements

2015-12-10 Thread Raymond Wan
Hi Owen, Sorry to jump into the discussion, but what you're talking is something I was thinking of just recently... I think the choice between this: On Thu, Dec 10, 2015 at 3:48 PM, Owen Alanzo Hogarth wrote: > set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) > set(CMAKE_LIBRARY_OUT

Re: [CMake] Executable using a library (.a or .so)

2015-11-14 Thread Raymond Wan
Hi Franck, On Sat, Nov 14, 2015 at 11:05 PM, houssen wrote: > I tested your proposal (need to add target_include_directories to find > headers) : > # in MyLib/CmakeLists.txt > add_library( MyLib libsource1.c > libsource2.cpp ) > # in MyExe/CmakeLists.txt > add_exectubable( MyExe exesour

[CMake] Handling dependencies between projects

2015-11-04 Thread Raymond Wan
Dear all, I know this is a frequent question on this mailing list, but I'm being a bit overwhelmed with information and not too sure which direction I should head. Basically, I have executables X and Y who are each top-level projects. They make use of library A. Library A in turn makes use of li

Re: [CMake] linking hared libraries

2015-10-19 Thread Raymond Wan
Hi Owen, On Mon, Oct 19, 2015 at 8:43 PM, Owen Alanzo Hogarth wrote: > Also you said the PROJECT() should only be defined once, but shouldn't each > cmakelists.txt contain a project() or else cmake complains at me. According to the last paragraph of: https://cmake.org/cmake/help/v3.0/command/

Re: [CMake] Using add_subdirectory to manage project dependencies that aren't actually in a subdirectory

2015-09-18 Thread Raymond Wan
Hi Joe, On Sat, Sep 19, 2015 at 6:42 AM, Joe wrote: > /path/to/modules/FindA.cmake: > > ... > if (NOT TARGET A) >set(PATH_TO_A ${CMAKE_CURRENT_LIST_DIR}../A) >add_subdirectory(${PATH_TO_A} ${PATH_TO_A}/build) > endif() > ... > > This way, A' CMakeLists is invoked and the library is compi

Re: [CMake] Parallel builds

2015-09-16 Thread Raymond Wan
On Wed, Sep 16, 2015 at 11:44 PM, Petr Bena wrote: > I would prefer a way to get cmake to generate solution files for MSVC > in a way that these options are enabled by default. Right now I need > to do this by hand and when I run cmake again, it overwrites the > solution files I modified and resto

Re: [CMake] FindMPI

2015-09-11 Thread Raymond Wan
Hi Nico, On Fri, Sep 11, 2015 at 4:53 PM, Nico Schlömer wrote: > I see from the CMake docs [1] that the recommended way for using MPI is to > call `find_package(MPI)` and set the linker and include flags appropriately. > On the other hand, I see from the OpenMPI specs [2] that > >> > > The Open

Re: [CMake] CMake Error at build/modules/add_boost.cmake:156 (message):‏

2015-08-15 Thread Raymond Wan
Hi Sonya, On Sat, Aug 15, 2015 at 10:12 AM, Sonya Blade wrote: > Thank you in advance, your guess is correct Cmake module downloaded the > boost and tried to compile it. > Much more interestingly, it has extracted the current compiler suit on my > machine (GCC 4.7.1) and downloaded > the appropr

Re: [CMake] CMake Error at build/modules/add_boost.cmake:156 (message):

2015-08-13 Thread Raymond Wan
Hi Sonya, On Fri, Aug 14, 2015 at 12:46 PM, Sonya Blade wrote: > Where do you see all of this, I couldn't even make out single meaningfu > sentence out of it. > The only thing that I can understand is that bootstrap cmake file is > executed but bootstrap.sh > file is failing. I don't even under

Re: [CMake] on cmake supporting one arch per project (from CMake IR)

2015-08-04 Thread Raymond Wan
On Wed, Aug 5, 2015 at 8:23 AM, Scott Aron Bloom wrote: > I understand.. However, my point are these. > > First, its no longer just windows, its windows and mac using XCode. > Second, VS and XCode ALREADY support this feature in their IDE. In NON CMake > created project systems, I can have in 1

Re: [CMake] on cmake supporting one arch per project (from CMake IR)

2015-08-04 Thread Raymond Wan
On Wed, Aug 5, 2015 at 7:10 AM, Scott Aron Bloom wrote: > === > IMO, this is one of the biggest shortcomings of CMake. I understand the > heritage of the CMake world being "make file" based.. I really do.. And I > love having a true "out of source" make file generator for when

Re: [CMake] CMake IR

2015-07-29 Thread Raymond Wan
Hi Máté, On Wed, Jul 29, 2015 at 3:49 PM, Nagy-Egri Máté Ferenc wrote: > I wanted to ask your opinion on something that has been troubling me since… > well, ever since I started using CMake. I have not found a single person > alive who would have said: > > “The script language of CMake is nice,

Re: [CMake] cmake linking errors in simple project

2015-07-06 Thread Raymond Wan
Hi Owen, On Mon, Jul 6, 2015 at 3:48 PM, Owen Alanzo Hogarth wrote: > I created this simple project but I am having linking errors. Everything > builds correctly but when I try to add my lib to my main.c cmake complains > about linking errors. > > Here's what the project looks like: http://paste

Re: [CMake] finding boost

2015-03-03 Thread Raymond Wan
Hi Dave, On Tue, Mar 3, 2015 at 6:20 PM, Dave Yost wrote: > I’m having trouble with the find_package documentation w.r.t. boost. > > I can’t divine how to get find_package to look for boost in various places it > might be on the various systems where we do builds. I know boost looks in > sever

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

2012-12-11 Thread Raymond Wan
Hi Jakub, On Fri, Dec 7, 2012 at 4:46 PM, Jakub Zakrzewski wrote: > 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)

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

2012-12-06 Thread Raymond Wan
Hi all, I have two CMakeFile.txt's for a C++ project where one includes the other. In both cases, I'm searching for Boost. So, to make this easier, suppose I call one project "parent" and the other "child" such that "parent"'s CMakefile.txt has: INCLUDE_DIRECTORIES (child) where child is a sub

Re: [CMake] how to inherit includes from other directories

2011-09-07 Thread Raymond Wan
Hi Glenn, On Wed, Sep 7, 2011 at 20:36, Glenn Coombs wrote: > Could you not create a file in each subdirectory called something like > header-deps.cmake ?  This file would contain the include_directory() > commands necessary for using this module, plus include() commands of other > modules that

Re: [CMake] how to inherit includes from other directories

2011-09-06 Thread Raymond Wan
Hi Victor, On Wed, Sep 7, 2011 at 05:39, Victor Yankee wrote: > There may 3 or 4 levels. At the top level, I would very much like to avoid > needing to know all the dependencies at all the lower levels and > exhaustively listing each one in an  'include_directories()' command. > > If utils/B.h n

Re: [CMake] how to inherit includes from other directories

2011-09-04 Thread Raymond Wan
Hi Victor, On Sat, Sep 3, 2011 at 02:27, Victor Yankee wrote: > build/ > src/ > utils > a > A.h > unittest_a.cpp > > b > B.h // needs a.h > > unittest_b.cpp > > common >

[CMake] GraphViz module?

2011-08-23 Thread Raymond Wan
Hi all, I was wondering if there is a GraphViz module that is included with cmake. I'm using an older 2.8.2 and can't seem to find such a module and I'm wondering if my installation is just missing it. I looked at the recent cmake docs and it seems that it doesn't exist? I did a search and came

[CMake] CPack -- adding license to files

2011-07-01 Thread Raymond Wan
Hi all, I was wondering if there is an easy/automated way that I can get CMake or CPack to add a license to every source file prior to distribution of the source. Of course, I mean that I would provide the wording of the license and "all" it does is copy this license to the top of each source fil

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi Hendrik, On Tue, Jun 7, 2011 at 17:17, Hendrik Sattler wrote: > Zitat von Raymond Wan : >> Hm, I never thought of the first option!  So if I am understanding >> your suggestion correctly, this basically means that in X's class >> definition, it has an entry

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi Hendrik, Thank you for the suggestions! On Tue, Jun 7, 2011 at 17:02, Hendrik Sattler wrote: > Zitat von Raymond Wan : >> I think/hope so far things are ok...  I can compile Y and run it with >> no problems.  The problem is that X needs access to this generated >> co

[CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi all, I'm having a problem which I can't quite figure out how to solve. Basically, I have C++ source code in two directories, each for a different class. Let's say: src/X src/Y Each one makes a different class but ultimately X makes use of Y (i.e., an instance of Y is a variable within X's de

[CMake] Dependency problem with 2.8.0 (but not 2.8.2+)

2011-05-17 Thread Raymond Wan
Hi all, I'm having a problem with cmake giving me an error about attempting to add a Boost library to a target. However, I have confirmed that my CMakeLists.txt works fine in 2.8.2 and 2.8.4; however, it doesn't work in 2.8.0. Unfortunately, I'm trying to get it work on a machine running on 2.8.

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-27 Thread Raymond Wan
Hi Ken, On Fri, Jan 28, 2011 at 00:38, Moreland, Kenneth wrote: ... > Rather than have the ADD_LATEX_DOCUMENT in top-level/latex/CMakelists.txt, > try putting it in top-level instead and making all of your file references > to top-level.  After you build, the document structure should be someth

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-27 Thread Raymond Wan
Hi Ken, Sorry for not replying, but this message of your's ended up in spam filter... :-( On Wed, Jan 26, 2011 at 01:56, Moreland, Kenneth wrote: > Looking at the source code, I believe it is assumed that the paths you give > for images are relative to the directory ADD_LATEX_DOCUMENT is called

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-25 Thread Raymond Wan
Hi Daniel, On Tue, Jan 25, 2011 at 16:15, Daniel Pfeifer wrote: > Am Dienstag, den 25.01.2011, 15:41 +0900 schrieb Raymond Wan: >> ... Is there something I can do >> in my CMakeLists.txt file to ensure that it is the default target (and >> not "pdf" or any o

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-25 Thread Raymond Wan
Hi Daniel, Thanks for the reply! On Tue, Jan 25, 2011 at 16:15, Daniel Pfeifer wrote: > Am Dienstag, den 25.01.2011, 15:41 +0900 schrieb Raymond Wan: >>  Everything is fine except that pdflatex >> doesn't seem to work with images well on my system...  That's of &

[CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-24 Thread Raymond Wan
Hi all, I'm not sure if many people have experience with UseLATEX.cmake (http://www.cmake.org/Wiki/CMakeUserUseLATEX), but I have a question which I guess is general. Everything is fine except that pdflatex doesn't seem to work with images well on my system... That's of course my system [or my :

Re: [CMake] CPack 101

2010-12-23 Thread Raymond Wan
Hi Mike and all, On Thu, Dec 23, 2010 at 21:58, Mike McQuaid wrote: > On 23 December 2010 12:43, David Cole wrote: > I think the main problem is that you make it very hard for people to > contribute. KDE and Homebrew (two other open-source projects I've > written a lot of code for over the year

Re: [CMake] Linking archives in a sibling directory

2010-12-12 Thread Raymond Wan
Hi Michael, Thank you for the follow-up and sorry for my late response! I appreciate your suggestions as they basically summarize the problems I've been having... On Wed, Dec 8, 2010 at 21:25, Michael Hertling wrote: > Yes, absolutely, with such relations among executables and libraries, > the

Re: [CMake] Linking archives in a sibling directory

2010-12-03 Thread Raymond Wan
Hi Michael, Thank you for your continued advice! On Fri, Dec 3, 2010 at 19:13, Michael Hertling wrote: > On 12/02/2010 03:13 PM, Raymond Wan wrote: >> ADD_SUBDIRECTORY (dir-A) >> >> before >> >> ADD_SUBDIRECTORY (main) >> >> then "main"

Re: [CMake] Linking archives in a sibling directory

2010-12-02 Thread Raymond Wan
Hi Rolf, On Thu, Dec 2, 2010 at 23:36, Rolf Eike Beer wrote: > Let's say you have > > dirA, dirB, dirC > > dirA builds a lib > dirB builds a lib that needs libA > dirC builds a target that needs libA and libB > > Then you can't do > > > libB/CMakeLists.txt >  ADD_SUBDIRECTORY(../dirA dira) > > l

Re: [CMake] Linking archives in a sibling directory

2010-12-02 Thread Raymond Wan
Hi Michael, On Thu, Dec 2, 2010 at 19:40, Michael Hertling wrote: > On 12/01/2010 06:03 PM, Raymond Wan wrote: >> Ah!  I see.  Then is it recommended that this top-level CMakeLists.txt >> have just these lines, or should I move the ADD_EXECUTABLE, etc. lines >> here as wel

Re: [CMake] Linking archives in a sibling directory

2010-12-01 Thread Raymond Wan
Hi Michael, On Thu, Dec 2, 2010 at 01:03, Michael Hertling wrote: > On 12/01/2010 08:18 AM, Raymond Wan wrote: >> Hi all, >> >> I'm having a problem understanding how I can link to an archive in >> another directory which is not a subdirectory. For exa

[CMake] Linking archives in a sibling directory

2010-11-30 Thread Raymond Wan
Hi all, I'm having a problem understanding how I can link to an archive in another directory which is not a subdirectory. For example: myproj +-- main +-- CMakeLists.txt +-- source files for main program +-- dir-A +-- CMakeLists.txt +-- source files for sub-program A +-- dir

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-09-05 Thread Raymond Wan
Hi Andreas, Thanks for the reply and the two points that you raised. Yes, "make -j" is what I was thinking of. It just didn't occur to me that it would be make's job; thought separating compilation into multiple processes has be done at the point the Makefile is created...guess I was wrong... T

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-09-02 Thread Raymond Wan
Hi Chiheng, On Thu, Sep 2, 2010 at 16:15, Chiheng Xu wrote: > CMake is a very great tool.    But its drawback is also obvious.    It > will consume large amount of time to generate Makefiles every time you > want to build,  especially for ultra large projects.   Building can be > parallelized, b

Re: [CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Raymond Wan
Hi Eric, On Tue, Aug 31, 2010 at 20:59, Eric Noulard wrote: > 2010/8/31 Raymond Wan : >> /* #undef HAVE_OPENMP */ >> I can confirm that OpenMP is being detected because I can see the >> various values being defined in CMakeCache.txt.  HAVE_OPENMP is not in >> this

Re: [CMake] Conditional compiling [i.e. OpenMP] -- solved!

2010-08-31 Thread Raymond Wan
Hi Ryan and Eric, Thank you both for your replies! On Tue, Aug 31, 2010 at 20:10, Ryan Pavlik wrote: >  On 8/31/10 3:40 AM, Raymond Wan wrote: >> I think "SET (HAVE_OPENMP 1)" is wrong, but I don't know what should >> it be.  If it is correct, do I n

[CMake] Conditional compiling [i.e. OpenMP]

2010-08-31 Thread Raymond Wan
Hi all, I'm still quite new to cmake and am trying to do something I use to do with autotools (took me ages to figure that out :-) ). I guess what I'm trying to do is not specific to OpenMP, though. In my C++ code, I'd like to add: #if HAVE_OPENMP #include #endif and have this check around ot