Changeset 199


Ignore:
Timestamp:
03/01/11 04:52:16 (9 years ago)
Author:
jls17
Message:
  • some tweaks to the 64-bit solaris/AIX builds
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/work_302/CMakeLists.txt

    r198 r199  
    2222#SET(CMAKE_BUILD_TYPE Debug)         # OR USE AT CMD-LINE: -DCMAKE_BUILD_TYPE=Debug         ## for debug builds 
    2323#SET(ARINSIDE_TARGET_ARCHITECTURE 4) # OR USE AT CMD-LINE: -DARINSIDE_TARGET_ARCHITECTURE=4 ## for 32bit build on 64bit platform 
     24 
     25MESSAGE(STATUS "System Name: ${CMAKE_SYSTEM_NAME}") 
    2426 
    2527# configurable variables for cmakegui 
     
    153155        ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") 
    154156                SET(LIBAR_SUFFIX "_lx64") 
    155                 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -m64") 
    156                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -m64") 
     157                IF(CMAKE_SIZEOF_VOID_P EQUAL 4) ## if we target 64-bit but the default is 32-bit, add some special flags 
     158                        ADD_DEFINITIONS(-m64) 
     159                        SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m64") 
     160                ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) 
    157161        ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS") 
    158162                SET(LIBAR_SUFFIX "_solsp64") 
    159                 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -m64") 
    160                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -m64") 
     163                IF(CMAKE_SIZEOF_VOID_P EQUAL 4) ## if we target 64-bit but the default is 32-bit, add some special flags 
     164                        ADD_DEFINITIONS(-m64) 
     165                        SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m64") 
     166                ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) 
    161167        ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "AIX") 
    162168                SET(LIBAR_SUFFIX "_aixp64") 
    163                 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -maix64 -mminimal-toc") 
    164                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -maix64 -mminimal-toc") 
    165                 SET(LINK_FLAGS "${LINK_FLAGS} -Wl,-brtl -maix64") 
     169                IF(CMAKE_SIZEOF_VOID_P EQUAL 4) ## if we target 64-bit but the default is 32-bit, add some special flags 
     170                        ADD_DEFINITIONS(-maix64 -mminimal-toc) 
     171                        SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-brtl -maix64") 
     172                ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) 
    166173        ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Windows") 
    167174         
     
    188195 
    189196# check that necessary libs were found 
     197MESSAGE(STATUS "libar: (${ARINSIDE_ARAPI_LIB}) -- ${ARS_API_LIB}") 
    190198IF (NOT ARS_API_LIB) 
    191199        MESSAGE(FATAL_ERROR "Could not find ${ARINSIDE_ARAPI_LIB} in '${AR_INCLUDE_PATH}'! Please check or specify AR_INCLUDE_PATH variable") 
Note: See TracChangeset for help on using the changeset viewer.