[CMake] Find a 64-bit library

Micha Renner Micha.Renner at t-online.de
Wed Jun 3 09:50:16 EDT 2015


Hallo,

I want to find the library MSImg32 on a Windos 8.1 system 64-bit.

The library is located here:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64
\MSImg32.Lib"
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\MSImg32.Lib"
"C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64\MSImg32.Lib"
"C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\MSImg32.Lib"

The script uses these commands to locate the library
SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)

FIND_LIBRARY(MS_IMG_32_LIBRARY MSImg32)

The result is:
C:/Program Files (x86)/Windows Kits/8.0/Lib/win8/um/x86/MSImg32.Lib

So what can I do to find the 64-bit version of MSImg32.

Greetings

Micha




More information about the CMake mailing list