From f7b59f6e5539dae66785ea34b6cd4f19ea24b531 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Thu, 1 Nov 2018 15:57:47 -0600 Subject: [PATCH] CMake: Fix pandatool/p3txafile build error on Windows Need to define BUILDING_MISC for p3txafile so that it can be properly exported. --- pandatool/src/egg-palettize/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pandatool/src/egg-palettize/CMakeLists.txt b/pandatool/src/egg-palettize/CMakeLists.txt index 5ed61c6cca..81e7da0ace 100644 --- a/pandatool/src/egg-palettize/CMakeLists.txt +++ b/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)