Skip to content

Commit 198aec9

Browse files
KindDragonlgritz
authored andcommitted
Fix CMake error with MSVC compiler (#1794)
1 parent b409c02 commit 198aec9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libOpenImageIO/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ if (WIN32)
155155
target_link_libraries (OpenImageIO psapi.lib)
156156
endif ()
157157

158-
add_dependencies (OpenImageIO "${VISIBILITY_MAP_FILE}")
158+
if (VISIBILITY_MAP_FILE)
159+
add_dependencies (OpenImageIO "${VISIBILITY_MAP_FILE}")
160+
endif ()
159161

160162
if (USE_EXTERNAL_PUGIXML)
161163
target_link_libraries (OpenImageIO ${PUGIXML_LIBRARIES})

0 commit comments

Comments
 (0)