首页 > 代码库 > cmake编译(编译目标)x86或x64

cmake编译(编译目标)x86或x64

if(CMAKE_CL_64)
set(ADDRESS_MODEL 64)
set(NODE_TARGET x64)
else()
set(ADDRESS_MODEL 32)
set(NODE_TARGET x86)
endif()

看以上代码,判断下就行了

reference:

http://blog.csdn.net/wh_xiexing/article/details/18301923

cmake编译(编译目标)x86或x64