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
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
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
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)
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
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
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
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,
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
Hello all,
I do use the ExternalProject to prebuild some binaries, without the
'superproject' setup, and it does seem to work. Using the
add_dependencies, I can make sure some third party libs are prebuild
before I start to build my project. I have seen some issues with
ExternalProject (failing to
Hi.
I've never worked with ExternalProject myself, so I can't comment with
certainty, but from what I understand, the correct way of using
ExternalProject is to add your own project as an ExternalProject as well.
Basically, the toplevel CMakeList becomes a superbuild which *only* does
ExternalProj
I had asked in http://stackoverflow.com/questions/25841602 , someone told me
maybe here is a better place to ask.
I am writing a project base on crfpp , a external project. I use cmake to
integerate this project as follow .
firstly , I add a extenal project like this:
EXTERNALPROJECT_ADD(
12 matches
Mail list logo