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})