[x265] CMake 3.1.0-rc1 changed policies (/VisualLeakDetector)

Mario *LigH* Rohkrämer contact at ligh.de
Thu Nov 13 15:36:15 CET 2014


I don't know how to use TortoiseHg to create a complete patch. But here is  
a snippet which should help completing one, from the diff view of the  
Workbench:

+----
@@ -54,6 +54,9 @@
    LIST (APPEND _VLD_POSSIBLE_LIB_SUFFIXES lib/Win64)
  ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 4)

+SET (_PROGRAMFILES "ProgramFiles")
+SET (_PROGRAMFILES_X86 "ProgramFiles(x86)")
+
  FIND_PATH (VLD_ROOT_DIR
    NAMES include/vld.h
    PATHS ENV VLDROOT
@@ -57,8 +60,8 @@
  FIND_PATH (VLD_ROOT_DIR
    NAMES include/vld.h
    PATHS ENV VLDROOT
-        "$ENV{PROGRAMFILES}/Visual Leak Detector"
-        "$ENV{PROGRAMFILES(X86)}/Visual Leak Detector"
+        "$ENV{${_PROGRAMFILES}}/Visual Leak Detector"
+        "$ENV{${_PROGRAMFILES_X86}}/Visual Leak Detector"
          "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Visual  
Leak Detector;InstallLocation]"
          "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Visual  
Leak Detector;InstallLocation]"
    DOC "VLD root directory")
+----

-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
 


More information about the x265-devel mailing list