diff options
Diffstat (limited to 'emulators/tpm-emulator/files/patch-CMakeLists.txt')
-rw-r--r-- | emulators/tpm-emulator/files/patch-CMakeLists.txt | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/emulators/tpm-emulator/files/patch-CMakeLists.txt b/emulators/tpm-emulator/files/patch-CMakeLists.txt index 76de9a3fa2f7..33f4b1b0ae15 100644 --- a/emulators/tpm-emulator/files/patch-CMakeLists.txt +++ b/emulators/tpm-emulator/files/patch-CMakeLists.txt @@ -1,33 +1,8 @@ --- CMakeLists.txt.orig 2010-07-06 06:21:20.000000000 +0900 -+++ CMakeLists.txt 2010-10-25 02:56:43.617558705 +0900 -@@ -5,13 +5,13 @@ - - project(TPM_Emulator C) - --cmake_minimum_required(VERSION 2.6) -+cmake_minimum_required(VERSION 2.4) - - # enforce out of source build - string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" IS_INSOURCE) - if(IS_INSOURCE) - message(FATAL_ERROR "${PROJECT_NAME} requires an out of source build.") --endif() -+endif(IS_INSOURCE) - - # set project and build version - set(${PROJECT_NAME}_VERSION_MAJOR 0) -@@ -29,14 +29,14 @@ - set(TPM_SOCKET_NAME "/private/var/run/tpm/tpmd_socket:0") - set(TPM_STORAGE_NAME "/private/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}") - set(TPM_DEVICE_NAME "/dev/tpm") --else() -+else(WIN32) - set(TPM_LOG_FILE "/var/log/tpmd.log") - set(TPM_SOCKET_NAME "/var/run/tpm/tpmd_socket:0") - set(TPM_STORAGE_NAME "/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}") ++++ CMakeLists.txt 2010-12-15 07:24:08.279834034 +0900 +@@ -36,7 +36,7 @@ set(TPM_DEVICE_NAME "/dev/tpm") --endif() -+endif(WIN32) + endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) -add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) +add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings) @@ -38,7 +13,7 @@ # include root directories include_directories(${CMAKE_SOURCE_DIR}) include_directories(${CMAKE_BINARY_DIR}) -+include_directories("/usr/local/include") ++include_directories(${CMAKE_INCLUDE_PATH}) # add internal libraries add_subdirectory(tpm) |