Author: akhaldi
Date: Sun Apr 29 20:04:52 2012
New Revision: 56449
URL:
http://svn.reactos.org/svn/reactos?rev=56449&view=rev
Log:
[CRT/OLDNAMES]
* Treat the oldnames lib as an import lib.
Modified:
trunk/reactos/lib/sdk/crt/oldnames.cmake
Modified: trunk/reactos/lib/sdk/crt/oldnames.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/oldnames.cmake…
==============================================================================
--- trunk/reactos/lib/sdk/crt/oldnames.cmake [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/oldnames.cmake [iso-8859-1] Sun Apr 29 20:04:52 2012
@@ -1,11 +1,7 @@
if(NOT MSVC)
- add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/liboldnames.a
- COMMAND ${CMAKE_DLLTOOL} --def ${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def
--kill-at --output-lib ${CMAKE_CURRENT_BINARY_DIR}/liboldnames.a)
-
- set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/liboldnames.a PROPERTIES
GENERATED TRUE)
-
- add_custom_target(oldnames ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/liboldnames.a)
+ _add_library(oldnames STATIC EXCLUDE_FROM_ALL
${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def)
+ set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def
PROPERTIES EXTERNAL_OBJECT TRUE)
+ set_target_properties(oldnames PROPERTIES LINKER_LANGUAGE "IMPLIB" PREFIX
"")
else()
add_library(oldnames oldnames-msvcrt.S)
endif()