Skip to content

Commit e5068b7

Browse files
authored
Adsk Contrib - Remove 'expat' symbols (#1582) (#1591)
* Adsk Contrib - Remove 'yaml' symbols Signed-off-by: Patrick Hodoul <[email protected]> * Improve the symbol control Signed-off-by: Patrick Hodoul <[email protected]>
1 parent 3ba4f95 commit e5068b7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/OpenColorIO/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,17 @@ set_target_properties(OpenColorIO PROPERTIES
301301
PUBLIC_HEADER "${INSTALL_HEADERS}"
302302
)
303303

304-
if (UNIX AND NOT APPLE)
304+
if(UNIX AND NOT APPLE)
305305
# Also hide all the symbols of dependent libraries to prevent clashes if
306306
# an app using this project is linked against other versions of our
307307
# dependencies.
308308
set_property (TARGET OpenColorIO
309309
APPEND PROPERTY LINK_FLAGS "-Wl,--exclude-libs,ALL")
310-
endif ()
310+
elseif(APPLE)
311+
# Hide the expat symbols.
312+
set_property (TARGET OpenColorIO
313+
APPEND PROPERTY LINK_FLAGS "-Wl,-hidden-lexpat")
314+
endif()
311315

312316
if(MSVC AND BUILD_SHARED_LIBS)
313317
# Install the pdb file if any.

src/apps/ociochecklut/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class ProcessorWrapper
6868
#else
6969
void setGPU(OCIO::ConstGPUProcessorRcPtr)
7070
{
71+
m_verbose = false; // Avoid a warning.
7172
}
7273
#endif // OCIO_GPU_ENABLED
7374

0 commit comments

Comments
 (0)