[Cmake] AUX_SOURCE_DIRECTORY does not work with full paths?
Andy Cedilnik
andy.cedilnik at kitware.com
Mon, 05 Jan 2004 10:59:21 -0500
Hi Stefan,
You should be able to specify full path to sources in the
CMakeLists.txt. We do this in several projects and it works fine.
Do something like:
FIND_PATH(EXTRA_DIR extrasrc.cxx /foo/bar "Extra sources directory")
IF(EXTRA_DIR)
SET(SRCS ${SRCS}
${EXTRA_DIR}/extrasrc.cxx
)
ELSE(EXTRA_DIR)
MESSAGE(FATAL_ERROR "Cannot find extra sources")
ENDIF(EXTRA_DIR)
Andy
On Mon, 2004-01-05 at 10:36, Stefan Kowski wrote:
> Hi,
>
> I am using cmake-1.8.1 on Windows and tried to create a CMakeLists.txt file
> building an executable with source files from different projects, not
> organized in a common file structure (i.e. some files are stored on a
> different network drive).
>
> I tried to use AUX_SOURCE_DIRECTORY() with a full path to the other drive,
> but that does not seem to work. Am I right that it only accepts relative
> paths? Is it possible to make a workaround?