]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKKernelConfig.cmake
*** empty log message ***
[bbtk.git] / kernel / cmake / BBTKKernelConfig.cmake
index 03eb509ef073ed6fac280cb61c483854c16ae7f8..d461929f74693997c7db3f48b51f888f4c150f29 100644 (file)
@@ -61,7 +61,16 @@ IF(WIN32)
   SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
 
 ELSE(WIN32)
-  SET(BBTK_LIB_PATH lib)
+       if( NOT APPLE )
+               # check 64 bit
+               if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
+                       set( HAVE_64_BIT 0 )
+                       SET(BBTK_LIB_PATH  lib)
+               else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
+                       set( HAVE_64_BIT 1 )
+                       SET(BBTK_LIB_PATH  lib64)
+               endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
+        endif( NOT APPLE )
 # For Xcode : have to test the cmake generator !
   IF ( CMAKE_GENERATOR STREQUAL Xcode)
     SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH}/Debug)