From b60ac4220c760c28605e51e5b07d4f22c6421353 Mon Sep 17 00:00:00 2001 From: Viktor Kirilov Date: Sat, 27 May 2017 17:25:37 +0300 Subject: [PATCH] fixing build of tools for MinGW otherwise I would get the following error when linking shaderc.exe ../../../../bin/gcc/Release/libbx.a(os.cpp.obj):os.cpp:(.text+0x49): undefined reference to `GetProcessMemoryInfo' Note: I'm using MinGW-w64 gcc 7.1 and also have VS 2017 installed with the Game development with C++ workflow --- cmake/bx.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/bx.cmake b/cmake/bx.cmake index 75a0f9b..1c18fe6 100644 --- a/cmake/bx.cmake +++ b/cmake/bx.cmake @@ -29,8 +29,8 @@ endif() # Create the bx target add_library( bx STATIC ${BX_SOURCES} ) -# Link against psapi in Visual Studio -if( MSVC ) +# Link against psapi on Windows +if( WIN32 ) target_link_libraries( bx PUBLIC psapi ) endif()