[x265] [PATCH ] Fix Build fails for MacOS

mythreyi at multicorewareinc.com mythreyi at multicorewareinc.com
Fri Nov 17 14:20:18 CET 2017


# HG changeset patch
# User Mythreyi P
# Date 1510905431 -19800
#      Fri Nov 17 13:27:11 2017 +0530
# Node ID e7254af562ee4cf29d559f85dbd2f3d17791b6d4
# Parent  06979c0423504a324ea05ca3de59769c6d0fba0d
Fix Build fails for MacOS

Duplicate uninstall targets were removed.

diff -r 06979c042350 -r e7254af562ee source/CMakeLists.txt
--- a/source/CMakeLists.txt	Thu Nov 16 20:23:14 2017 +0530
+++ b/source/CMakeLists.txt	Fri Nov 17 13:27:11 2017 +0530
@@ -650,13 +650,11 @@
             DESTINATION "${LIB_INSTALL_DIR}/pkgconfig")
 endif()
 
-if(NOT WIN32)
     configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
                    "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake"
                    IMMEDIATE @ONLY)
     add_custom_target(uninstall
                       "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake")
-endif()
 
 # Main CLI application
 set(ENABLE_CLI ON CACHE BOOL "Build standalone CLI application")
@@ -725,13 +723,3 @@
         set(PLATFORM_LIBS ${PLATFORM_LIBS} PARENT_SCOPE)
     endif(PLATFORM_LIBS)
 endif(hasParent)
-
-# uninstall target
-if(NOT TARGET UNINSTALL)
-    configure_file(
-        "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
-        "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
-        IMMEDIATE @ONLY)
-    add_custom_target(UNINSTALL
-        COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
-endif()


More information about the x265-devel mailing list