Dilawar Singh Being Dilawar/ Tools/

Use the following snippet

if(“${CMAKE_SIZEOF_VOID_P}” EQUAL “8”) MESSAGE(“++ 64 bit architecture”)   #set(LIBSUFFIX “64”)   set(PKGARCH “amd64”)   # set(RPMPKGARCH “x86_64”) else()   MESSAGE(“++ 32 bit architecture”)   # set(LIBSUFFIX “”) # set(PKGARCH “i386”) endif()