瀏覽代碼

CMake: Fix pandatool/p3txafile build error on Windows

Need to define BUILDING_MISC for p3txafile so that it can
be properly exported.
Sam Edwards 7 年之前
父節點
當前提交
f7b59f6e55
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pandatool/src/egg-palettize/CMakeLists.txt

+ 1 - 0
pandatool/src/egg-palettize/CMakeLists.txt

@@ -3,5 +3,6 @@ target_link_libraries(egg-palettize p3palettizer p3eggbase p3progbase)
 install(TARGETS egg-palettize DESTINATION bin)
 
 add_library(p3txafile txaFileFilter.cxx txaFileFilter.h txaFileFilter.I)
+set_target_properties(p3txafile PROPERTIES DEFINE_SYMBOL BUILDING_MISC)
 target_link_libraries(p3txafile p3palettizer)
 install(TARGETS p3txafile DESTINATION lib RUNTIME DESTINATION bin)