diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-06 13:40:18 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-12-06 13:40:18 (GMT) |
commit | 246e9641807e817f0a6051130128d5433e1b83a6 (patch) | |
tree | c4f0c9520188836a2c6d135b52484efd953fa228 /Tests/COnly | |
parent | 6d7ca9f9d4b78ac426650c2237a35d1ab0e2bae4 (diff) | |
download | CMake-246e9641807e817f0a6051130128d5433e1b83a6.zip CMake-246e9641807e817f0a6051130128d5433e1b83a6.tar.gz CMake-246e9641807e817f0a6051130128d5433e1b83a6.tar.bz2 |
BUG: fix for bug 5455, handle nodefaultlib with more than one lib
Diffstat (limited to 'Tests/COnly')
-rw-r--r-- | Tests/COnly/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt index 6b28fec..35e70eb 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}") |