Browse Source

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.
Sam Edwards 7 years ago
parent
commit
aea53844d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/dxgsg9/CMakeLists.txt

+ 1 - 1
panda/src/dxgsg9/CMakeLists.txt

@@ -40,7 +40,7 @@ add_component_library(p3dxgsg9 SYMBOL BUILDING_PANDADX
   ${P3DXGSG9_HEADERS} ${P3DXGSG9_SOURCES})
   ${P3DXGSG9_HEADERS} ${P3DXGSG9_SOURCES})
 target_link_libraries(p3dxgsg9 p3windisplay panda
 target_link_libraries(p3dxgsg9 p3windisplay panda
   PKG::CG PKG::DX9)
   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)
 if(NOT BUILD_METALIBS)
   install(TARGETS p3dxgsg9 DESTINATION lib RUNTIME DESTINATION bin)
   install(TARGETS p3dxgsg9 DESTINATION lib RUNTIME DESTINATION bin)