From 6ac0bb2f38e0b66df1250c52c6fc966f6bc7f29b Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 28 Feb 2013 14:48:25 +0000 Subject: [PATCH] Preparing Win64 version --- adm_local/cmake_files/FindCADSURF.cmake | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/adm_local/cmake_files/FindCADSURF.cmake b/adm_local/cmake_files/FindCADSURF.cmake index 6822a40..c567a9a 100644 --- a/adm_local/cmake_files/FindCADSURF.cmake +++ b/adm_local/cmake_files/FindCADSURF.cmake @@ -24,14 +24,16 @@ SET(MESHGEMS_CADSURF_INCLUDES ${MESHGEMS_CADSURF_INCLUDES} -I${CADSURF_INCLUDES_ SET(CADSURF_LIBS_PATHS) SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib) + +SET(suff) +IF(CMAKE_SIZEOF_VOID_P STREQUAL 8) + SET(suff "_64") +ENDIF() + IF(WINDOWS) - SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/WinXP_VC9) + SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/WinXP${suff}_VC9) ELSE(WINDOWS) - IF(CMAKE_SIZEOF_VOID_P STREQUAL 8) - SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux_64) - ELSE() - SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux) - ENDIF() + SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib/Linux${suff}) ENDIF(WINDOWS) FIND_LIBRARY(mg-cadsurf mg-cadsurf PATHS ${CADSURF_LIBS_PATHS}) -- 2.39.2