summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest')
-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)