Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/cmake
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: CMake mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel="stylesheet" href="../../lib/codemirror.css">
[6] Fix | Delete
<script src="../../lib/codemirror.js"></script>
[7] Fix | Delete
<script src="../../addon/edit/matchbrackets.js"></script>
[8] Fix | Delete
<script src="cmake.js"></script>
[9] Fix | Delete
<style>
[10] Fix | Delete
.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
[11] Fix | Delete
.cm-s-default span.cm-arrow { color: red; }
[12] Fix | Delete
</style>
[13] Fix | Delete
<div id=nav>
[14] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
[15] Fix | Delete
[16] Fix | Delete
<ul>
[17] Fix | Delete
<li><a href="../../index.html">Home</a>
[18] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[19] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[20] Fix | Delete
</ul>
[21] Fix | Delete
<ul>
[22] Fix | Delete
<li><a href="../index.html">Language modes</a>
[23] Fix | Delete
<li><a class=active href="#">CMake</a>
[24] Fix | Delete
</ul>
[25] Fix | Delete
</div>
[26] Fix | Delete
[27] Fix | Delete
<article>
[28] Fix | Delete
<h2>CMake mode</h2>
[29] Fix | Delete
<form><textarea id="code" name="code">
[30] Fix | Delete
# vim: syntax=cmake
[31] Fix | Delete
if(NOT CMAKE_BUILD_TYPE)
[32] Fix | Delete
# default to Release build for GCC builds
[33] Fix | Delete
set(CMAKE_BUILD_TYPE Release CACHE STRING
[34] Fix | Delete
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
[35] Fix | Delete
FORCE)
[36] Fix | Delete
endif()
[37] Fix | Delete
message(STATUS "cmake version ${CMAKE_VERSION}")
[38] Fix | Delete
if(POLICY CMP0025)
[39] Fix | Delete
cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
[40] Fix | Delete
endif()
[41] Fix | Delete
if(POLICY CMP0042)
[42] Fix | Delete
cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
[43] Fix | Delete
endif()
[44] Fix | Delete
[45] Fix | Delete
project (x265)
[46] Fix | Delete
cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
[47] Fix | Delete
include(CheckIncludeFiles)
[48] Fix | Delete
include(CheckFunctionExists)
[49] Fix | Delete
include(CheckSymbolExists)
[50] Fix | Delete
include(CheckCXXCompilerFlag)
[51] Fix | Delete
[52] Fix | Delete
# X265_BUILD must be incremented each time the public API is changed
[53] Fix | Delete
set(X265_BUILD 48)
[54] Fix | Delete
configure_file("${PROJECT_SOURCE_DIR}/x265.def.in"
[55] Fix | Delete
"${PROJECT_BINARY_DIR}/x265.def")
[56] Fix | Delete
configure_file("${PROJECT_SOURCE_DIR}/x265_config.h.in"
[57] Fix | Delete
"${PROJECT_BINARY_DIR}/x265_config.h")
[58] Fix | Delete
[59] Fix | Delete
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
[60] Fix | Delete
[61] Fix | Delete
# System architecture detection
[62] Fix | Delete
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
[63] Fix | Delete
set(X86_ALIASES x86 i386 i686 x86_64 amd64)
[64] Fix | Delete
list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
[65] Fix | Delete
if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
[66] Fix | Delete
message(STATUS "Detected x86 target processor")
[67] Fix | Delete
set(X86 1)
[68] Fix | Delete
add_definitions(-DX265_ARCH_X86=1)
[69] Fix | Delete
if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8)
[70] Fix | Delete
set(X64 1)
[71] Fix | Delete
add_definitions(-DX86_64=1)
[72] Fix | Delete
endif()
[73] Fix | Delete
elseif(${SYSPROC} STREQUAL "armv6l")
[74] Fix | Delete
message(STATUS "Detected ARM target processor")
[75] Fix | Delete
set(ARM 1)
[76] Fix | Delete
add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)
[77] Fix | Delete
else()
[78] Fix | Delete
message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown")
[79] Fix | Delete
message(STATUS "Please add this value near ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}")
[80] Fix | Delete
endif()
[81] Fix | Delete
[82] Fix | Delete
if(UNIX)
[83] Fix | Delete
list(APPEND PLATFORM_LIBS pthread)
[84] Fix | Delete
find_library(LIBRT rt)
[85] Fix | Delete
if(LIBRT)
[86] Fix | Delete
list(APPEND PLATFORM_LIBS rt)
[87] Fix | Delete
endif()
[88] Fix | Delete
find_package(Numa)
[89] Fix | Delete
if(NUMA_FOUND)
[90] Fix | Delete
list(APPEND CMAKE_REQUIRED_LIBRARIES ${NUMA_LIBRARY})
[91] Fix | Delete
check_symbol_exists(numa_node_of_cpu numa.h NUMA_V2)
[92] Fix | Delete
if(NUMA_V2)
[93] Fix | Delete
add_definitions(-DHAVE_LIBNUMA)
[94] Fix | Delete
message(STATUS "libnuma found, building with support for NUMA nodes")
[95] Fix | Delete
list(APPEND PLATFORM_LIBS ${NUMA_LIBRARY})
[96] Fix | Delete
link_directories(${NUMA_LIBRARY_DIR})
[97] Fix | Delete
include_directories(${NUMA_INCLUDE_DIR})
[98] Fix | Delete
endif()
[99] Fix | Delete
endif()
[100] Fix | Delete
mark_as_advanced(LIBRT NUMA_FOUND)
[101] Fix | Delete
endif(UNIX)
[102] Fix | Delete
[103] Fix | Delete
if(X64 AND NOT WIN32)
[104] Fix | Delete
option(ENABLE_PIC "Enable Position Independent Code" ON)
[105] Fix | Delete
else()
[106] Fix | Delete
option(ENABLE_PIC "Enable Position Independent Code" OFF)
[107] Fix | Delete
endif(X64 AND NOT WIN32)
[108] Fix | Delete
[109] Fix | Delete
# Compiler detection
[110] Fix | Delete
if(CMAKE_GENERATOR STREQUAL "Xcode")
[111] Fix | Delete
set(XCODE 1)
[112] Fix | Delete
endif()
[113] Fix | Delete
if (APPLE)
[114] Fix | Delete
add_definitions(-DMACOS)
[115] Fix | Delete
endif()
[116] Fix | Delete
</textarea></form>
[117] Fix | Delete
<script>
[118] Fix | Delete
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
[119] Fix | Delete
mode: "text/x-cmake",
[120] Fix | Delete
matchBrackets: true,
[121] Fix | Delete
indentUnit: 4
[122] Fix | Delete
});
[123] Fix | Delete
</script>
[124] Fix | Delete
[125] Fix | Delete
<p><strong>MIME types defined:</strong> <code>text/x-cmake</code>.</p>
[126] Fix | Delete
[127] Fix | Delete
</article>
[128] Fix | Delete
[129] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function