this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

LKM build from CMake (resolves #280)

+18 -6
+3
CMakeLists.txt
··· 5 5 6 6 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") 7 7 include(InstallSymlink) 8 + include(MacroEnsureOutOfSourceBuild) 9 + 10 + MACRO_ENSURE_OUT_OF_SOURCE_BUILD() 8 11 9 12 set(DARLING_TOP_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") 10 13 set(DARLING_NO_EXECUTABLES OFF)
+14
cmake/MacroEnsureOutOfSourceBuild.cmake
··· 1 + macro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD ) 2 + string( COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" _insource ) 3 + if( _insource ) 4 + message( FATAL_ERROR 5 + "In-source builds are not allowed. 6 + CMake would overwrite the Linux kernel module Makefile. 7 + Please create a directory and run cmake from there, passing the path 8 + to this source directory as the last argument. 9 + This process created the file `CMakeCache.txt' and the directory `CMakeFiles'. 10 + Please delete them." 11 + ) 12 + endif( _insource ) 13 + endmacro( MACRO_ENSURE_OUT_OF_SOURCE_BUILD ) 14 +
+1 -6
src/CMakeLists.txt
··· 188 188 add_subdirectory(external/doc_cmds) 189 189 add_subdirectory(external/libcxxabi) 190 190 add_subdirectory(external/libcxx) 191 + add_subdirectory(lkm) 191 192 192 - ####################### 193 - # Linux kernel module # 194 - ####################### 195 193 196 - add_custom_target(lkm 197 - COMMAND gmake 198 - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lkm")