Re: [CMake] Get Visual Studio target Arch

2014-09-16 Thread Gilles Khouzam
Hi David, Alexey I'm glad to hear your enthusiasm about our involvement with CMake. We're still trying to understand the issues that people are facing and how we can help improve those. The multi-platform support is something somewhat experimental that will have issues, but getting feedback wil

Re: [CMake] FW: Parallel GNU make issue

2014-09-16 Thread Hennigan, Gary L
Bill and David, Thanks for the replies. I had to shift to something else for a bit but I'm back to looking at this... Bill, I'm not sure what you mean by "external projects"? My software is built as part of a large suite of open-source software collectively named Trilinos that is owned, or at

[CMake] QUIET option removes all output of find_package

2014-09-16 Thread Nicola Mori via CMake
According to the Cmake documentation for find_package: http://www.cmake.org/cmake/help/v3.0/command/find_package.html the QUIET option should suppress the output only when a package cannot be found: "The QUIET option disables messages if the package cannot be found." From my experience, QUIE

Re: [CMake] project not found despite being found

2014-09-16 Thread Nils Gladitz
On 16.09.2014 17:38, Biddiscombe, John A. wrote: " Found package configuration file: /Users/biddisco/build/cmakesuper/xxx/xxx-config.cmake but it set xxx_FOUND to FALSE so package “xxx" is considered to be NOT FOUND. “ Which is not expected. If I set xxx_FOUND in the config, it g

[CMake] project not found despite being found

2014-09-16 Thread Biddiscombe, John A.
I have a project which generates a project-config.cmake file and a project-config-version.cmake file in the relevant place, When another project tries to find_package it, I receive this message from cmake " Found package configuration file: /Users/biddisco/build/cmakesuper/xxx/xxx-config.c

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello All, It is is because of # AUX_SOURCE_DIRECTORY(. DIR_TARGET) # ADD_LIBRARY (relfiles ${DIR_TARGET}) That’s really a stupid fault ,and thanks for your debug …TAT I adjust the usage of External project , and it seems much better . Thanks for your help . Thanks for M

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
I am trying … That’s a very clear organization On Sep 16, 2014, at 19:57, Micha Hergarden wrote: > Hello Yu, > > That is because of the following lines: > > AUX_SOURCE_DIRECTORY(. DIR_TARGET) > ADD_LIBRARY (relfiles ${DIR_TARGET}) > > I think you may be misusing the aux_source_directory com

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
Hello Yu, That is because of the following lines: AUX_SOURCE_DIRECTORY(. DIR_TARGET) ADD_LIBRARY (relfiles ${DIR_TARGET}) I think you may be misusing the aux_source_directory command. I have tested your setup on a linux machine with -j8 and it still builds. Did you take a look at the openchemist

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello Micha, It seems still not work…. On Sep 16, 2014, at 17:36, Micha Hergarden wrote: > Hello Yu, > > It seems I too needed another trick to make it work: > set_property(TARGET CRFPP_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) > set_property(TARGET LEVELDB_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE)

Re: [CMake] Get Visual Studio target Arch

2014-09-16 Thread David Cole via CMake
> I still cant really make some arch specific ifdefs in my cmake > scripts using this approach. That's the point of a multi-configuration, multi-architecture Visual Studio solution: you defer choosing the configuration *and* the architecture until build time. No "CMake time" decisions are possib

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
Hello Yu, It seems I too needed another trick to make it work: set_property(TARGET CRFPP_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) set_property(TARGET LEVELDB_EX_PROJ PROPERTY EXCLUDE_FROM_ALL TRUE) ADD_DEPENDENCIES(cmake_sample iniparser_static CRFPP_EX_PROJ LEVELDB_EX_PROJ) By default the Extern

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Marcel Loose
Hi Yu, I think you need to add an explicit dependency of main.cc on the "generated" (well, not really generated, but installed) header file crfpp.h. CMake has no clue as to what files are being compiled/installed by your external project, so you have to make this explicit. HTH, Marcel Loose. On

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
Hello Micha , It seems doesn’t work. I updated code , and move the external project to src , and it still not work. what should be noticed is : 1. If I just use $ make as make command ,all styles are work 2. If I use in multi jobs $ make -j8 It will run abnormal (not desired sequence) . On Se

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Micha Hergarden
It may be that you have line 63 and 64 the wrong way around: ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(lib) The externalproject is added in lib, but you add a dependency on it in src. CMake will descend in the subdirectories in the order you supply them. Does reversing the directories help? Regards,

Re: [CMake] how to force assign sequence in multi-thread in cmake

2014-09-16 Thread Yu Jing
I am in OSX 10.9.4 , a sample in github is : https://github.com/yujing5b5d/cmake_sample after git clone this project , a operation like this : yu:cmake_sample yu$ mkdir build yu:cmake_sam