Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Bill Hoffman

Martin Apel wrote:

Bill Hoffman wrote:

Martin Apel wrote:

Hi all,

I am generating a DLL under Windows using a def file. The def file
itself is generated. It seems that CMake (2.6.3rc5) does not generate a
dependency between the generated def file and the DLL. When I change the
input, from which the def file is generated, the def file is rebuilt,
but not the DLL itself. The code looks as follows:

  SET(DefFile ${CMAKE_CURRENT_BINARY_DIR}/FortranInterface.def)
  ADD_CUSTOM_COMMAND(OUTPUT ${DefFile}
 COMMAND ${PERL_EXECUTABLE}
${CMAKE_SOURCE_DIR}/scripts/create_dll_exports_file.pl
 --export-file=${DefFile} --so-name=FortranInterface

${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt

 DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
 )

  ADD_LIBRARY(FortranInterface SHARED ${DefFile} ${FortranSrc})
  TARGET_LINK_LIBRARIES(FortranInterface ${MY_LIBS})
  SET_TARGET_PROPERTIES(FortranInterface PROPERTIES
LINK_INTERFACE_LIBRARIES "")

  SET_SOURCE_FILES_PROPERTIES(${DefFile} PROPERTIES GENERATED 1)

To me this looks like a bug in CMake. Can somebody confirm, that this is
a bug or am I doing something wrong?


What version of VS are you using?   Also, nmake or VS IDE?


Hi Bill and all the rest,

sorry, I forgot to state this: VS version is 2005 and I am using nmake.



Can you send me your binary tree (after a make clean) so I can see the 
makefiles that were generated?  You can send it off the list if you want.


-Bill
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Bill Hoffman wrote:
> Martin Apel wrote:
>> Hi all,
>>
>> I am generating a DLL under Windows using a def file. The def file
>> itself is generated. It seems that CMake (2.6.3rc5) does not generate a
>> dependency between the generated def file and the DLL. When I change the
>> input, from which the def file is generated, the def file is rebuilt,
>> but not the DLL itself. The code looks as follows:
>>
>>   SET(DefFile ${CMAKE_CURRENT_BINARY_DIR}/FortranInterface.def)
>>   ADD_CUSTOM_COMMAND(OUTPUT ${DefFile}
>>  COMMAND ${PERL_EXECUTABLE}
>> ${CMAKE_SOURCE_DIR}/scripts/create_dll_exports_file.pl
>>  --export-file=${DefFile} --so-name=FortranInterface
>> 
>> ${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
>>  DEPENDS
>> ${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
>>  )
>>
>>   ADD_LIBRARY(FortranInterface SHARED ${DefFile} ${FortranSrc})
>>   TARGET_LINK_LIBRARIES(FortranInterface ${MY_LIBS})
>>   SET_TARGET_PROPERTIES(FortranInterface PROPERTIES
>> LINK_INTERFACE_LIBRARIES "")
>>
>>   SET_SOURCE_FILES_PROPERTIES(${DefFile} PROPERTIES GENERATED 1)
>>
>> To me this looks like a bug in CMake. Can somebody confirm, that this is
>> a bug or am I doing something wrong?
>>
> What version of VS are you using?   Also, nmake or VS IDE?
>
Hi Bill and all the rest,

sorry, I forgot to state this: VS version is 2005 and I am using nmake.

Best Regards,

Martin


-- 

Martin Apel Tel: 0049 8153 9288-47
Software Architect  E-Mail:  [EMAIL PROTECTED]

INTEC GmbH  Tel: 0049 8153 9288-0
Argelsrieder Feld 13Fax: 0049 8153 9288-11
82234 Wessling  E-Mail:  [EMAIL PROTECTED]
Germany URL: http://www.simpack.com


Virus checked by G DATA AntiVirus
Version: AVF 19.178 from 08.12.2008


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Win: Dependency for def file missing

2008-12-09 Thread Bill Hoffman

Martin Apel wrote:

Hi all,

I am generating a DLL under Windows using a def file. The def file
itself is generated. It seems that CMake (2.6.3rc5) does not generate a
dependency between the generated def file and the DLL. When I change the
input, from which the def file is generated, the def file is rebuilt,
but not the DLL itself. The code looks as follows:

  SET(DefFile ${CMAKE_CURRENT_BINARY_DIR}/FortranInterface.def)
  ADD_CUSTOM_COMMAND(OUTPUT ${DefFile}
 COMMAND ${PERL_EXECUTABLE}
${CMAKE_SOURCE_DIR}/scripts/create_dll_exports_file.pl
 --export-file=${DefFile} --so-name=FortranInterface
 ${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
 DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
 )

  ADD_LIBRARY(FortranInterface SHARED ${DefFile} ${FortranSrc})
  TARGET_LINK_LIBRARIES(FortranInterface ${MY_LIBS})
  SET_TARGET_PROPERTIES(FortranInterface PROPERTIES
LINK_INTERFACE_LIBRARIES "")

  SET_SOURCE_FILES_PROPERTIES(${DefFile} PROPERTIES GENERATED 1)

To me this looks like a bug in CMake. Can somebody confirm, that this is
a bug or am I doing something wrong?


What version of VS are you using?   Also, nmake or VS IDE?

-Bill
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Win: Dependency for def file missing

2008-12-09 Thread Martin Apel
Hi all,

I am generating a DLL under Windows using a def file. The def file
itself is generated. It seems that CMake (2.6.3rc5) does not generate a
dependency between the generated def file and the DLL. When I change the
input, from which the def file is generated, the def file is rebuilt,
but not the DLL itself. The code looks as follows:

  SET(DefFile ${CMAKE_CURRENT_BINARY_DIR}/FortranInterface.def)
  ADD_CUSTOM_COMMAND(OUTPUT ${DefFile}
 COMMAND ${PERL_EXECUTABLE}
${CMAKE_SOURCE_DIR}/scripts/create_dll_exports_file.pl
 --export-file=${DefFile} --so-name=FortranInterface
 ${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
 DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/FortranInterfaceExport.txt
 )

  ADD_LIBRARY(FortranInterface SHARED ${DefFile} ${FortranSrc})
  TARGET_LINK_LIBRARIES(FortranInterface ${MY_LIBS})
  SET_TARGET_PROPERTIES(FortranInterface PROPERTIES
LINK_INTERFACE_LIBRARIES "")

  SET_SOURCE_FILES_PROPERTIES(${DefFile} PROPERTIES GENERATED 1)

To me this looks like a bug in CMake. Can somebody confirm, that this is
a bug or am I doing something wrong?

Regards,

Martin




Virus checked by G DATA AntiVirus
Version: AVF 19.178 from 08.12.2008


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake