- Apply the proper definition to user32_wsprintf using target properties.

svn path=/branches/cmake-bringup/; revision=50630
This commit is contained in:
Amine Khaldi 2011-02-09 12:09:21 +00:00
parent 9b9bf81ccc
commit d6f1cb454c
2 changed files with 13 additions and 17 deletions

View file

@ -628,4 +628,16 @@ if(MSVC)
add_dependencies(msvcsup psdk buildno_header asm)
endif()
add_subdirectory(printf)
add_library(user32_wsprintf
printf/streamout.c
printf/wstreamout.c
printf/wsprintfA.c
printf/wsprintfW.c
printf/wvsprintfA.c
printf/wvsprintfW.c
printf/wvsnprintfA.c
printf/wvsnprintfW.c
string/mbstowcs_nt.c
string/wcstombs_nt.c)
set_property(TARGET user32_wsprintf PROPERTY COMPILE_DEFINITIONS _USER32_WSPRINTF)

View file

@ -1,16 +0,0 @@
include_directories(.. ../include)
add_definitions(-D_USER32_WSPRINTF)
add_library(user32_wsprintf
streamout.c
wstreamout.c
wsprintfA.c
wsprintfW.c
wvsprintfA.c
wvsprintfW.c
wvsnprintfA.c
wvsnprintfW.c
../string/mbstowcs_nt.c
../string/wcstombs_nt.c)