On Mon, Nov 6, 2017 at 4:12 AM, llvm 999 <llvm....@outlook.com> wrote:
>
>
> Can anyone tell me the most appropriate generator expression to obtain the
> x32 vs x64 build info regardless of platform (windows or Linux)?
>
>
>
> I would like to place some static libs into certain output folders based
> on whether I am building for a x32 or x64 architecture.
>
Assuming you just want to differentiate between 32- and 64-bit builds,
something like the following should point you in the right direction:
$<$<EQUAL:4,${CMAKE_SIZEOF_VOID_P}>:...> # 32-bit build
$<$<EQUAL:8,${CMAKE_SIZEOF_VOID_P}>:...> # 64-bit build
--
Craig Scott
Melbourne, Australia
https://crascit.com
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers