CMake's global property, FIND_LIBRARY_USE_LIB64_PATHS
, has the following documentation:
FIND_LIBRARY_USE_LIB64_PATHS
is a boolean specifying whether theFIND_LIBRARY
command should automatically search thelib64
variant of directories called lib in the search path when building 64-bit binaries.
Reading "when building 64-bit binaries" implies CMake somehow knows my target architecture, and automatically toggles the behavior on/off depending. Am I just reading too far into this, or does CMake have a higher-level abstraction for dealing with 32-bit/64-bit compilation?
If there is, how do I configure whatever mechanism is used by FIND_LIBRARY_USE_LIB64_PATHS
, to force a 32-bit/64-bit compiliation?
I realize there are existing questions dealing with forcing 32-bit/64-bit, but they deal with CMAKE_C_FLAGS
and the like. If CMake has a higher level abstraction, I'd prefer it to messing with CFLAGS
.