X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=a343543bb3d6962b3f1df7c3d0e158e52a2595d7;hb=822355e377f62068b719a62c717648be0900a455;hp=71105b2874c8070f57c00b813809b92f56d85156;hpb=e107b61e0f3d685ae315fb726ad307038727c887;p=unres.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 71105b2..a343543 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,10 +90,25 @@ if (MPIF_FOUND) message("MPIF_INCLUDE_DIRECTORIES=${MPIF_INCLUDE_DIRECTORIES}" ) endif(MPIF_FOUND) + + +#====================================== +# Detect system architecture +# + +if( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + set(architektura "32") +else (CMAKE_SIZEOF_VOID_P EQUAL 4) + set(architektura "64") +endif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) + +message("Detected ${architektura}-bit architecture") + + #======================================= # Create diractories for build targets #======================================= -execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/unres/MD ) +#execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/unres/MD ) #======================================= # Add source files