There are several ways - also used by CMake itself - that will check for "not 64Bit":
if(NOT "${CMAKE_GENERATOR}" MATCHES "(Win64|IA64)")
...
endif()
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
...
endif()
if(NOT CMAKE_CL_64)
...
endif()
References
- CMAKE_GENERATOR
- CMAKE_SIZEOF_VOID_P
- CMAKE_CL_64