Skip to content

Commit

Permalink
Fix CMP0010 CMake warning caused by back slashes on Windows (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanChristopheMorinPerso committed Sep 21, 2021
1 parent 835fc5c commit 8e8a5a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ if(OTIO_PYTHON_INSTALL)
set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${OTIO_PYTHON_INSTALL_DIR}/opentimelineio")
endif()
endif()

if (WIN32)
string(REPLACE "\\" "/" OTIO_RESOLVED_PYTHON_INSTALL_DIR ${OTIO_RESOLVED_PYTHON_INSTALL_DIR})
endif()

else()
set(OTIO_RESOLVED_CXX_DYLIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib")
message(STATUS "OTIO C++ installing to ${CMAKE_INSTALL_PREFIX}")
Expand Down

0 comments on commit 8e8a5a5

Please sign in to comment.