summaryrefslogtreecommitdiff
path: root/Tests/Complex
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-05-01 10:38:35 -0400
committerBrad King <brad.king@kitware.com>2009-05-01 10:38:35 -0400
commit430cc2b4b7a817be2fbc445d6803163f1695a533 (patch)
treef41fc7fbf2fb1671bb0fa3b9e36bc6ecc5403957 /Tests/Complex
parent2740db5eded92d61ae38e69d67a4e4179ae5d20e (diff)
downloadcmake-430cc2b4b7a817be2fbc445d6803163f1695a533.tar.gz
ENH: Always imply CLEAN_DIRECT_OUTPUT target prop
This property was left from before CMake always linked using full path library names for targets it builds. In order to safely link with "-lfoo" we needed to avoid having both shared and static libraries in the build tree for targets that switch on BUILD_SHARED_LIBS. This meant cleaning both shared and static names before creating the library, which led to the creation of CLEAN_DIRECT_OUTPUT to disable the behavior. Now that we always link with a full path we do not need to clean old library names left from an alternate setting of BUILD_SHARED_LIBS. This change removes the CLEAN_DIRECT_OUTPUT property and instead uses its behavior always. It removes some complexity from cmTarget internally.
Diffstat (limited to 'Tests/Complex')
-rw-r--r--Tests/Complex/Library/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Complex/Library/CMakeLists.txt b/Tests/Complex/Library/CMakeLists.txt
index 4f2e5a4aec..d21e959eb5 100644
--- a/Tests/Complex/Library/CMakeLists.txt
+++ b/Tests/Complex/Library/CMakeLists.txt
@@ -66,7 +66,7 @@ IF(CMAKE_EXE_LINK_STATIC_CXX_FLAGS)
ADD_LIBRARY(CMakeTestLinkStatic STATIC TestLink.c)
ADD_LIBRARY(CMakeTestLinkShared SHARED TestLink.c)
SET_TARGET_PROPERTIES(CMakeTestLinkStatic CMakeTestLinkShared
- PROPERTIES OUTPUT_NAME CMakeTestLink CLEAN_DIRECT_OUTPUT 1)
+ PROPERTIES OUTPUT_NAME CMakeTestLink)
ENDIF(CMAKE_EXE_LINK_STATIC_CXX_FLAGS)
#