Changeset 1749


Ignore:
Timestamp:
09/11/11 00:59:07 (7 months ago)
Author:
Freddie Akeroyd
Message:

Windows build fixes. Refs #281

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1748 r1749  
    250250set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${NX_CFLAGS}") 
    251251 
     252if (CMAKE_SIZEOF_VOID_P MATCHES "8") 
     253    set(ARCH64 1) 
     254else() 
     255    set(ARCH64 0) 
     256endif() 
     257 
    252258# Recurse into the subdirectories. 
    253259add_subdirectory (src) 
  • trunk/Windows_extra/libNeXus-0-Win32.def

    r1630 r1749  
    5151NXMGetError 
    5252NXMSetError 
     53NXMSetTError 
    5354createNXDataset 
    5455createTextNXDataset 
     
    6667nxiclosegroup_ 
    6768nxicompmakedata_ 
     69nxicompmakedata64_ 
    6870nxicompress_ 
    6971nxifclose_ 
     
    8385nxigetgroupinfo_ 
    8486nxigetrawinfo_ 
     87nxigetrawinfo64_ 
    8588nxigetinfo_ 
     89nxigetinfo64_ 
    8690nxigetnextattr_ 
    8791nxigetnextentry_ 
    8892nxigetslab_ 
     93nxigetslab64_ 
    8994nxiinitattrdir_ 
    9095nxiinitgroupdir_ 
     
    9398nxilinkexternal_ 
    9499nximakedata_ 
     100nximakedata64_ 
    95101nximakegroup_ 
    96102nximakelink_ 
    97103nximakenamedlink_ 
    98104nximalloc_ 
     105nximalloc64_ 
    99106nxiopen_ 
    100107nxiopendata_ 
     
    106113nxiputdata_ 
    107114nxiputslab_ 
     115nxiputslab64_ 
    108116nxisameid_ 
    109117nxisetcache_ 
     
    112120putNXDatasetValueAt 
    113121nxigetpath_ 
     122nxilinkexternaldataset_ 
     123nxiisexternaldataset_ 
     124nxireopen_ 
  • trunk/src/CMakeLists.txt

    r1735 r1749  
    4141# need napi_exports2.c  on win32 but not win64 
    4242if (WIN32) 
    43     set(NAPISRC ${NAPISRC} napi_exports.c napi_exports.h) 
     43    if (CMAKE_CL_64) 
     44        set(NAPISRC ${NAPISRC} napi_exports2.c napi_exports.h) 
     45    else() 
     46        set(NAPISRC ${NAPISRC} napi_exports.c napi_exports2.c napi_exports.h) 
     47        endif() 
    4448endif (WIN32) 
     49 
    4550 
    4651set (NAPISRC ${NAPISRC} nxxml.c nxio.c nxio.h) 
     
    8287set_property(TARGET NeXus_Shared_Library APPEND PROPERTY COMPILE_DEFINITIONS _HDF5USEDLL_) 
    8388 
     89if (CMAKE_CL_64) 
     90   set(DEF_FILE ${PROJECT_SOURCE_DIR}/Windows_extra/libNeXus-0-x64.def) 
     91else() 
     92   set(DEF_FILE ${PROJECT_SOURCE_DIR}/Windows_extra/libNeXus-0-Win32.def) 
     93endif() 
     94 
    8495#Note - library version needs to be got from somewhere? 
    8596if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") 
    8697    set_target_properties(NeXus_Shared_Library PROPERTIES OUTPUT_NAME libNeXus-0 
    8798                      VERSION 1.0 SOVERSION 4 ) 
    88         set_property(TARGET NeXus_Shared_Library APPEND PROPERTY LINK_FLAGS /def:${PROJECT_SOURCE_DIR}/Windows_extra/libNeXus-0-x64.def) 
     99        set_property(TARGET NeXus_Shared_Library APPEND PROPERTY LINK_FLAGS /def:${DEF_FILE}) 
    89100else(${CMAKE_SYSTEM_NAME} MATCHES "Windows") 
    90101    set_target_properties(NeXus_Shared_Library PROPERTIES OUTPUT_NAME NeXus 
Note: See TracChangeset for help on using the changeset viewer.