* The def file is also an external object (that should be added to the link command directly).

svn path=/trunk/; revision=56289
This commit is contained in:
Amine Khaldi
2012-03-31 19:01:26 +00:00
parent 2a98331c77
commit 211b7c77d4
+1
View File
@@ -243,6 +243,7 @@ function(spec2def _dllname _spec_file)
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def ${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c
COMMAND native-spec2def -n=${_dllname} --kill-at -a=${ARCH2} -d=${CMAKE_CURRENT_BINARY_DIR}/${_file}.def -s=${CMAKE_CURRENT_BINARY_DIR}/${_file}_stubs.c ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def PROPERTIES EXTERNAL_OBJECT TRUE)
if(__add_importlib)
# generate the def for the export lib