[Cmake] hi again
Bill Hoffman
bill . hoffman at kitware . com
Tue, 19 Aug 2003 11:01:33 -0400
I think the problem is here:
AUX_SOURCE_DIRECTORY(../src LEVELSET_SOURCE_LIST)
ADD_LIBRARY(levelset_Gcc LEVELSET_SOURCE_LIST)
Should be:
ADD_LIBRARY(levelset_Gcc ${LEVELSET_SOURCE_LIST})
Also, ".." should not be used. It will break
out of source builds. I think that you have no source files which
is why the ar command is failing:
/usr/bin/ar cr ../lib/liblevelset_Gcc.a .o
/usr/bin/ar: .o: No such file or directory
What version of cmake are you using?
You may want to try this:
AUX_SOURCE_DIRECTORY(../src LEVELSET_SOURCE_LIST)
MESSAGE("${AUX_SOURCE_DIRECTORY}")
Then run cmake, my guess is that you have no source files.
-Bill
At 10:42 AM 8/19/2003, Mónica Hernández Giménez wrote:
>Greetings:
>
>The problem is not in ../include or ../src. I think the problem is in the way I call the path of my external library: extra/vit_local...
>
>Can somebody help me????