From aea53844d8f5019b3017ee19b84757e18c560d53 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Thu, 8 Nov 2018 22:56:16 -0700 Subject: [PATCH] CMake: dxgsg9's USE_GENERIC_DXERR_LIBRARY should be public The reason is that it's used in the public headers, so we need to make sure that users of the public headers also use the same preprocessor definition. --- panda/src/dxgsg9/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/CMakeLists.txt b/panda/src/dxgsg9/CMakeLists.txt index 1db30265a9..25c2fa1a8a 100644 --- a/panda/src/dxgsg9/CMakeLists.txt +++ b/panda/src/dxgsg9/CMakeLists.txt @@ -40,7 +40,7 @@ add_component_library(p3dxgsg9 SYMBOL BUILDING_PANDADX ${P3DXGSG9_HEADERS} ${P3DXGSG9_SOURCES}) target_link_libraries(p3dxgsg9 p3windisplay panda PKG::CG PKG::DX9) -target_compile_definitions(p3dxgsg9 PRIVATE USE_GENERIC_DXERR_LIBRARY) # FIXME +target_compile_definitions(p3dxgsg9 PUBLIC USE_GENERIC_DXERR_LIBRARY) # FIXME if(NOT BUILD_METALIBS) install(TARGETS p3dxgsg9 DESTINATION lib RUNTIME DESTINATION bin)