Add EXTERNAL_OBJECT TRUE for generated def files on gcc builds. Fixes empty exports.
Add kernelmodedriver module type for MSVC

svn path=/branches/cmake-bringup/; revision=49677
This commit is contained in:
Timo Kreuzer 2010-11-21 00:55:46 +00:00
parent 8ee00e2746
commit f12dd9240e
2 changed files with 8 additions and 1 deletions

View file

@ -161,7 +161,7 @@ macro(spec2def _dllname _spec_file)
COMMAND native-spec2def --dll ${_dllname} ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} ${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file})
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_file}.def
PROPERTIES GENERATED TRUE)
PROPERTIES GENERATED TRUE EXTERNAL_OBJECT TRUE)
endmacro()
# Optional 3rd parameter: dllname