summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-02-07 16:47:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-02-07 16:47:50 (GMT)
commitf2b47501694f6951c97335676b2c577cbb4fd76f (patch)
tree313c2ce2e7298e61257204c3fc9e808214cde90d /Source
parent579945c2e76e6b0228896a72213c37888509ad75 (diff)
downloadCMake-f2b47501694f6951c97335676b2c577cbb4fd76f.zip
CMake-f2b47501694f6951c97335676b2c577cbb4fd76f.tar.gz
CMake-f2b47501694f6951c97335676b2c577cbb4fd76f.tar.bz2
Remove warnings on AIX
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CTest/CMakeLists.txt b/Source/CTest/CMakeLists.txt
index f591462..72daf1e 100644
--- a/Source/CTest/CMakeLists.txt
+++ b/Source/CTest/CMakeLists.txt
@@ -1,6 +1,13 @@
CMAKE_MINIMUM_REQUIRED(VERSION 1.5)
PROJECT(CTEST CXX)
+#silence duplicate symbol warnings on AIX
+IF(CMAKE_SYSTEM MATCHES "AIX.*")
+ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -bhalt:5 ")
+ ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
+ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")
+
SUBDIRS(Curl)
FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS
@@ -18,4 +25,4 @@ INCLUDE_DIRECTORIES(${CTEST_SOURCE_DIR}/..
ADD_DEFINITIONS(-DHAVE_CURL)
ADD_EXECUTABLE(ctest ${CTEST_SRCS})
-TARGET_LINK_LIBRARIES(ctest ${CMAKE_LIBRARY} Curl) \ No newline at end of file
+TARGET_LINK_LIBRARIES(ctest ${CMAKE_LIBRARY} Curl)