From a03075416c3354d00dc837c9053bfb9cdc1a037f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 10 Apr 2019 21:20:15 +1000 Subject: [PATCH] [c-host] cmake: fix bad method of setting CFLAGS --- VERSION | 2 +- c-host/platform/Windows/capture/DXGI/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0f31bfe6..442044f9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-144-g8b47d740a8+1 \ No newline at end of file +a12-145-ge4d8cf2d76+1 \ No newline at end of file diff --git a/c-host/platform/Windows/capture/DXGI/CMakeLists.txt b/c-host/platform/Windows/capture/DXGI/CMakeLists.txt index c78f9484..4017e035 100644 --- a/c-host/platform/Windows/capture/DXGI/CMakeLists.txt +++ b/c-host/platform/Windows/capture/DXGI/CMakeLists.txt @@ -5,7 +5,7 @@ add_library(capture_DXGI STATIC src/dxgi.c ) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCOBJMACROS -DINITGUID") +add_definitions("-DCOBJMACROS -DINITGUID") FIND_PROGRAM(DLLTOOL_EXECUTABLE NAMES "dlltool.exe" DOC "dlltool executable") ADD_CUSTOM_COMMAND(TARGET capture_DXGI POST_BUILD