Remove warnings on AIX

This commit is contained in:
Bill Hoffman 2003-02-07 11:47:50 -05:00
parent 579945c2e7
commit f2b4750169
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,13 @@
CMAKE_MINIMUM_REQUIRED(VERSION 1.5) CMAKE_MINIMUM_REQUIRED(VERSION 1.5)
PROJECT(CTEST CXX) 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) SUBDIRS(Curl)
FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS
@ -18,4 +25,4 @@ INCLUDE_DIRECTORIES(${CTEST_SOURCE_DIR}/..
ADD_DEFINITIONS(-DHAVE_CURL) ADD_DEFINITIONS(-DHAVE_CURL)
ADD_EXECUTABLE(ctest ${CTEST_SRCS}) ADD_EXECUTABLE(ctest ${CTEST_SRCS})
TARGET_LINK_LIBRARIES(ctest ${CMAKE_LIBRARY} Curl) TARGET_LINK_LIBRARIES(ctest ${CMAKE_LIBRARY} Curl)