diff --git a/Source/CTest/CMakeLists.txt b/Source/CTest/CMakeLists.txt index f59146289..72daf1e88 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)