# won't work before project()!
#https://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
message("64 bit")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
message("32 bit")
endif()
微信扫一扫
# won't work before project()!
#https://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
message("64 bit")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
message("32 bit")
endif()
相关推荐