Skip to content

Commit 8e8a5a5

Browse files
Fix CMP0010 CMake warning caused by back slashes on Windows (#1076)
1 parent 835fc5c commit 8e8a5a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ if(OTIO_PYTHON_INSTALL)
8787
set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${OTIO_PYTHON_INSTALL_DIR}/opentimelineio")
8888
endif()
8989
endif()
90+
91+
if (WIN32)
92+
string(REPLACE "\\" "/" OTIO_RESOLVED_PYTHON_INSTALL_DIR ${OTIO_RESOLVED_PYTHON_INSTALL_DIR})
93+
endif()
94+
9095
else()
9196
set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
9297
message(STATUS "OTIO C++ installing to ${CMAKE_INSTALL_PREFIX}")

0 commit comments

Comments
 (0)