Index: CMakeLists.txt |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
index bc0175c12910fcef6d439ffe44e9f7963a2360d7..542171d0a1e72d23aaa6cf8994e1a8fbc9ea2991 100644 |
--- a/CMakeLists.txt |
+++ b/CMakeLists.txt |
@@ -50,4 +50,11 @@ else() |
add_compile_options(-Wno-undefined-var-template) |
endif() |
+execute_process(COMMAND git rev-parse HEAD |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
+ OUTPUT_VARIABLE SUBZERO_REVISION |
+ OUTPUT_STRIP_TRAILING_WHITESPACE |
+ ) |
+add_definitions(-DSUBZERO_REVISION=${SUBZERO_REVISION}) |
+ |
target_link_libraries(pnacl-sz pthread) |