Browse Source

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 years ago
parent
commit
f7b59f6e55
1 changed files with 1 additions and 0 deletions
  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)