ENH: look for AIX compiler as well

This commit is contained in:
Bill Hoffman 2003-01-06 09:04:18 -05:00
parent 578883ce64
commit 3da465e24f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ IF(NOT CMAKE_C_COMPILER)
# if no compiler has been specified yet, then look for one
IF(NOT CMAKE_C_COMPILER_INIT)
# if not in the envionment then search for the compiler in the path
SET(CMAKE_C_COMPILER_LIST gcc cc cl bcc )
SET(CMAKE_C_COMPILER_LIST gcc cc cl bcc xlc)
FIND_PROGRAM(CMAKE_C_COMPILER_FULLPATH NAMES ${CMAKE_C_COMPILER_LIST} )
GET_FILENAME_COMPONENT(CMAKE_C_COMPILER_INIT
${CMAKE_C_COMPILER_FULLPATH} NAME)

View File

@ -27,7 +27,7 @@ IF(NOT CMAKE_CXX_COMPILER)
# if no compiler has been found yet, then try to find one
IF(NOT CMAKE_CXX_COMPILER_INIT)
# if not in the envionment then search for the compiler in the path
SET(CMAKE_CXX_COMPILER_LIST c++ g++ CC aCC cl bcc )
SET(CMAKE_CXX_COMPILER_LIST c++ g++ CC aCC cl bcc xlC)
FIND_PROGRAM(CMAKE_CXX_COMPILER_FULLPATH NAMES ${CMAKE_CXX_COMPILER_LIST})
GET_FILENAME_COMPONENT(CMAKE_CXX_COMPILER_INIT
${CMAKE_CXX_COMPILER_FULLPATH} NAME)