How do I specify that CMake should use a different link_directories value depending on whether the target is 32-bit or 64-bit? For example, 32-bit binaries need
link_directories
You do something along these lines
if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( BOOST_LIBRARY "/boost/win64/lib" ) else( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( BOOST_LIBRARY "/boost/win32/lib" ) endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( CMAKE_EXE_LINKER_FLAGS ${BOOST_LIBRARY} )