From 6bdc331638c2da1a8814c25e312993f8a678d559 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 29 Jul 2010 15:52:00 +0000 Subject: [PATCH] [CMAKE] - mingw_common : set_property -> set_target_properties. - crt : fix target properties. svn path=/branches/cmake-bringup/; revision=48357 --- lib/3rdparty/mingw/CMakeLists.txt | 2 +- lib/sdk/crt/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/3rdparty/mingw/CMakeLists.txt b/lib/3rdparty/mingw/CMakeLists.txt index 0e272537b96..f2fd423a700 100644 --- a/lib/3rdparty/mingw/CMakeLists.txt +++ b/lib/3rdparty/mingw/CMakeLists.txt @@ -37,7 +37,7 @@ set(MINGW_COMMON_SOURCE add_library(mingw_common ${MINGW_COMMON_SOURCE}) target_link_libraries(mingw_common oldnames) -set_property(TARGET mingw_common PROPERTY COMPILE_DEFINITIONS _M_CEE_PURE) +set_target_properties(mingw_common PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE) add_dependencies(mingw_common psdk) diff --git a/lib/sdk/crt/CMakeLists.txt b/lib/sdk/crt/CMakeLists.txt index 1fb3abe2f8a..8d12e6b5c5d 100644 --- a/lib/sdk/crt/CMakeLists.txt +++ b/lib/sdk/crt/CMakeLists.txt @@ -9,7 +9,7 @@ LIST(REMOVE_ITEM CRT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/stdio/findgen.c) LIST(REMOVE_ITEM CRT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/string/strtold.c) add_library(crt ${CRT_SOURCE}) -set_property(TARGET crt PROPERTY COMPILE_DEFINITIONS -D__MINGW_IMPORT=extern -DUSE_MSVCRT_PREFIX -D_MSVCRT_LIB_ -D_MSVCRT_ -D_MT) +set_property(TARGET crt PROPERTY COMPILE_DEFINITIONS __MINGW_IMPORT=extern USE_MSVCRT_PREFIX _MSVCRT_LIB_ _MSVCRT_ _MT) add_dependencies(crt psdk) get_directory_property(defines COMPILE_DEFINITIONS) -- 2.17.1