Solved How to detect if compiling on 32 bit or 64 bit platform in .pro file?
-
How can I know if compiling on 32 bit or 64-bit platform in .pro file? When I choose 64bit compiler: in the .pro file
CONFIG(release, debug|release) {
QMAKE_POST_LINK += copy .\release\.lib ..\..\sdk_v2_demo\sdk\lib\x64 &
QMAKE_POST_LINK += copy .\release\.dll ..\..\sdk_v2_demo\sdk\lib\x64 &
}
and the 32bit:
CONFIG(release, debug|release) {
QMAKE_POST_LINK += copy .\release\.lib ..\..\sdk_v2_demo\sdk\lib\x86 &
QMAKE_POST_LINK += copy .\release\.dll ..\..\sdk_v2_demo\sdk\lib\x86 &
} -
@brucezcg Try one of the suggested solutions: https://stackoverflow.com/questions/356666/identifier-for-win64-configuration-in-qmake