mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CMAKE]
- Properly handle setting the suffix variable. Fixes import libs creation. svn path=/branches/cmake-bringup/; revision=50533
This commit is contained in:
parent
818d876f00
commit
14c01bd73c
2 changed files with 16 additions and 0 deletions
|
@ -269,6 +269,14 @@ macro(add_importlib_target _exports_file)
|
|||
get_filename_component(_name ${_exports_file} NAME_WE)
|
||||
get_filename_component(_extension ${_exports_file} EXT)
|
||||
get_target_property(_suffix ${_name} SUFFIX)
|
||||
if(${_suffix} STREQUAL "_suffix-NOTFOUND")
|
||||
get_target_property(_type ${_name} TYPE)
|
||||
if(${_type} MATCHES EXECUTABLE)
|
||||
set(_suffix ".exe")
|
||||
else()
|
||||
set(_suffix ".dll")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (${_extension} STREQUAL ".spec")
|
||||
|
||||
|
|
|
@ -139,6 +139,14 @@ endmacro()
|
|||
macro(add_importlib_target _exports_file)
|
||||
get_filename_component(_name ${_exports_file} NAME_WE)
|
||||
get_target_property(_suffix ${_name} SUFFIX)
|
||||
if(${_suffix} STREQUAL "_suffix-NOTFOUND")
|
||||
get_target_property(_type ${_name} TYPE)
|
||||
if(${_type} MATCHES EXECUTABLE)
|
||||
set(_suffix ".exe")
|
||||
else()
|
||||
set(_suffix ".dll")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Generate the asm stub file and the export def file
|
||||
add_custom_command(
|
||||
|
|
Loading…
Reference in a new issue