summaryrefslogtreecommitdiff
path: root/Tests/COnly
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-06 08:40:18 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-06 08:40:18 -0500
commit246e9641807e817f0a6051130128d5433e1b83a6 (patch)
treec4f0c9520188836a2c6d135b52484efd953fa228 /Tests/COnly
parent6d7ca9f9d4b78ac426650c2237a35d1ab0e2bae4 (diff)
downloadcmake-246e9641807e817f0a6051130128d5433e1b83a6.tar.gz
BUG: fix for bug 5455, handle nodefaultlib with more than one lib
Diffstat (limited to 'Tests/COnly')
-rw-r--r--Tests/COnly/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt
index 6b28fec9a2..35e70eb25f 100644
--- a/Tests/COnly/CMakeLists.txt
+++ b/Tests/COnly/CMakeLists.txt
@@ -6,6 +6,9 @@ add_library(testc1 STATIC libc1.c)
add_library(testc2 SHARED libc2.c)
add_executable (COnly conly.c foo.c foo.h)
target_link_libraries(COnly testc1 testc2)
-
+if(MSVC_VERSION)
+ set_target_properties(COnly PROPERTIES
+ LINK_FLAGS " /NODEFAULTLIB:\"libc.lib\" /NODEFAULTLIB:\"libcmt.lib\" /NODEFAULTLIB:\"msvcrt.lib\" /NODEFAULTLIB:\"libcd.lib\" /NODEFAULTLIB:\"libcmtd.lib\"")
+endif(MSVC_VERSION)
string(ASCII 35 32 67 77 97 107 101 ASCII_STRING)
message(STATUS "String: ${ASCII_STRING}")