PROJECT("test...") cmake_minimum_required(VERSION 2.6 FATAL_ERROR) ## sanity check: sometimes CMAKE_SIZEOF_VOID_P just vanishes (when updating CMake). if (NOT CMAKE_SIZEOF_VOID_P) message(FATAL_ERROR "'CMAKE_SIZEOF_VOID_P' is undefined. Thus you should delete CMakeFiles (the directory) and the CMakeCache.txt and rerun CMake again! This is some weird CMake bug that seems to appear when updating the CMake version.") endif() if (CMAKE_SIZEOF_VOID_P MATCHES "8") set(OPENMS_64BIT_ARCHITECTURE 1 CACHE INTERNAL "Architecture-bits") else() set(OPENMS_64BIT_ARCHITECTURE 0 CACHE INTERNAL "Architecture-bits") endif()