# 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()
Cmake判断使用lib64还是lib32
阅读 63
2022-11-26
# 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()
相关推荐
精彩评论(0)