Commit c3acc96d authored by Julien Schueller's avatar Julien Schueller
Browse files

CMake: Fix psapi lib name on case-sensitive fs

Fixes detection of GetProcessMemoryInfo on MinGW
parent 9c970074
...@@ -536,7 +536,7 @@ IF(KWSYS_USE_SystemInformation) ...@@ -536,7 +536,7 @@ IF(KWSYS_USE_SystemInformation)
ENDIF() ENDIF()
IF(WIN32) IF(WIN32)
INCLUDE(CheckSymbolExists) INCLUDE(CheckSymbolExists)
SET(CMAKE_REQUIRED_LIBRARIES Psapi) SET(CMAKE_REQUIRED_LIBRARIES psapi)
CHECK_SYMBOL_EXISTS(GetProcessMemoryInfo "windows.h;psapi.h" KWSYS_SYS_HAS_PSAPI) CHECK_SYMBOL_EXISTS(GetProcessMemoryInfo "windows.h;psapi.h" KWSYS_SYS_HAS_PSAPI)
UNSET(CMAKE_REQUIRED_LIBRARIES) UNSET(CMAKE_REQUIRED_LIBRARIES)
IF(KWSYS_SYS_HAS_PSAPI) IF(KWSYS_SYS_HAS_PSAPI)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment