Skip to content

Instantly share code, notes, and snippets.

@samee
samee / CMakeLists.txt
Created November 29, 2019 21:17
Using ExternalProject with cmake
cmake_minimum_required(VERSION 3.10)
include(ExternalProject)
ExternalProject_Add(fmtlib
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
EXCLUDE_FROM_ALL TRUE
BUILD_COMMAND $(MAKE) fmt
STEP_TARGETS build)
set(fmtlib_BINARY_DIR "${CMAKE_BINARY_DIR}/fmtlib-prefix/src/fmtlib-build")
set(fmtlib_SOURCE_DIR "${CMAKE_BINARY_DIR}/fmtlib-prefix/src/fmtlib/include")
add_executable(fmttest fmttest.cpp)
@samee
samee / highest.h.patch
Created June 10, 2014 02:41
highest example patch
diff --git a/test/oblivc/highest/highest.h b/test/oblivc/highest/highest.h
index 8618e93..e03b51e 100644
--- a/test/oblivc/highest/highest.h
+++ b/test/oblivc/highest/highest.h
@@ -4,12 +4,10 @@
typedef struct protocolIO
{
- int i[100];
+ int i[MAXN];
diff --git a/README.md b/README.md
index e246069..09f98ec 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ Obliv-C Compiler (`oblivcc`)
This readme is still under construction. But there is already a language tutorial at http://goo.gl/TXzxD0
-This requires libgcrypt to run. this can be downloaded on Ubuntu with `sudo apt-get install libgcrypt` then it also
+This requires libgcrypt and libgcrypt11-dev to run. this can be downloaded on Ubuntu with `sudo apt-get install lib