[CMake] Dependencies check failure
Ebersold André
andre.ebersold at alcatel.fr
Thu Sep 21 06:34:46 EDT 2006
Hello,
I am working with cmake 2.4.2 and have the macro bellow in a projet.
I uses the macro two times. The code works fine with 2.4.2.
I tried the same macro with cmake 2.4.3 and I have an error
in dependencies check. cmake says that there is no rule to build
src2.aac but it create src1.acc ?
Is this a regression from previous release ?
Kind regards Andrew
MACRO(GENAUTC file cfile)
ADD_CUSTOM_COMMAND(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${file}.lds
COMMAND /bin/ln
ARGS -s ${CMAKE_CURRENT_SOURCE_DIR}/${file}.lds
${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
COMMENT "create link")
ADD_CUSTOM_COMMAND(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
COMMAND ${LDST}
ARGS ${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}.AUT
${CMAKE_CURRENT_BINARY_DIR}/${file}.DSM
COMMENT "ldst compiling")
ADD_CUSTOM_COMMAND(SOURCE ${CMAKE_CURRENT_BINARY_DIR}/${file}.AUT
COMMAND ${GENAUTO}
ARGS ${file}.AUT ACTWORD PTRWORD SEMWORD ROM iC86
${GENAUT_FLAGS_LOCAL}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file}.AUT
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}.eta
COMMENT "Compiling eta")
ADD_CUSTOM_COMMAND(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${file}.DSM
COMMAND ${GENAUTO}
ARGS ${file}.DSM ACTWORD SEMWORD ROM iC86 ${GENAUT_FLAGS_LOCAL}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file}.eta
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}.aac
${CMAKE_CURRENT_BINARY_DIR}/${file}.act
COMMENT "Compiling aac and aac ")
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${file}.AUT
GENERATED)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${file}.DSM
GENERATED)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${file}.eta
GENERATED)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${file}.aac
GENERATED)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/${file}.lds
GENERATED)
#SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/${file}.c
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.eta)
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/${cfile}
OBJECT_DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${file}.aac)
ENDMACRO(GENAUTC file cfile)
GENAUTC(src1 test.c)
GENAUTC(src2 test.c)
^^^^^^^^^^^^^^^^^^^^^^ Dependencies for the rule above are not taken
into account
?
--
Alcatel External
-------------- next part --------------
A non-text attachment was scrubbed...
Name: andre.ebersold.vcf
Type: text/x-vcard
Size: 396 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060921/6fc05db8/andre.ebersold.vcf
More information about the CMake
mailing list