From aee15c68dc90e7419bb9dc51088c57a713c3a2b9 Mon Sep 17 00:00:00 2001 From: Julien Maffre <42961061+jumaffre@users.noreply.github.com> Date: Fri, 13 Mar 2020 16:27:56 +0000 Subject: [PATCH] Fix hardcoded paths in CCF install (#950) --- CMakeLists.txt | 18 +++++++++--------- cmake/secp256k1.cmake | 11 ++++------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae14da57b20..63bc4abf3023 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ include(${CCF_DIR}/cmake/preproject.cmake) project( ccf - VERSION 0.8.1 + VERSION 0.8.2 LANGUAGES C CXX ) @@ -59,11 +59,11 @@ if("sgx" IN_LIST TARGET) target_include_directories( ccf.enclave SYSTEM PUBLIC - $ + "$" $ - $ - $ - $ + $ + $ + $ ) target_link_libraries(ccf.enclave PUBLIC libbyz.enclave) @@ -111,11 +111,11 @@ if("virtual" IN_LIST TARGET) target_include_directories( ccf.virtual SYSTEM PUBLIC - $ + "$" $ - $ - $ - $ + $ + $ + $ ) target_link_libraries(ccf.virtual PUBLIC libbyz.host) diff --git a/cmake/secp256k1.cmake b/cmake/secp256k1.cmake index 40767c95b26d..5d511423c1d9 100644 --- a/cmake/secp256k1.cmake +++ b/cmake/secp256k1.cmake @@ -6,10 +6,8 @@ if("sgx" IN_LIST TARGET) secp256k1.enclave STATIC ${CCF_DIR}/3rdparty/secp256k1/src/secp256k1.c ) target_include_directories( - secp256k1.enclave - PUBLIC - $ - $ + secp256k1.enclave PUBLIC $ + $ ) target_compile_options( secp256k1.enclave PRIVATE -fvisibility=hidden -nostdinc @@ -28,9 +26,8 @@ endif() add_library(secp256k1.host STATIC ${CCF_DIR}/3rdparty/secp256k1/src/secp256k1.c) target_include_directories( - secp256k1.host - PUBLIC $ - $ + secp256k1.host PUBLIC $ + $ ) target_compile_options(secp256k1.host PRIVATE -fvisibility=hidden) target_compile_definitions(secp256k1.host PRIVATE HAVE_CONFIG_H SECP256K1_BUILD)