X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=0ce98436f85e1ba4b5f073eec66e71e24aac7838;hb=632ee3795c38faf6ffa11ac0d0248851eb1aa12c;hp=5a492b4689da808390f0e89cb470acde3c45af17;hpb=845ee579ce073879a4b43decade04af631c4fae3;p=crea.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a492b4..0ce9843 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,16 @@ SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}) IF (WIN32) SET(CREA_LIB_PATH bin) ELSE (WIN32) - SET(CREA_LIB_PATH lib) + if( NOT APPLE ) + # check 64 bit + if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 ) + set( HAVE_64_BIT 0 ) + SET(CREA_LIB_PATH lib) + else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 ) + set( HAVE_64_BIT 1 ) + SET(CREA_LIB_PATH lib64) + endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 ) + endif( NOT APPLE ) ENDIF(WIN32)