Index: CMakeLists.txt |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
index 64315b71fd6cc69c24cfab399ba75cec6090811f..b786204a09cd9436c9cb5ea9639e1b62ac25a8d3 100644 |
--- a/CMakeLists.txt |
+++ b/CMakeLists.txt |
@@ -35,4 +35,11 @@ else() |
add_compile_options(-Wno-undefined-var-template) |
endif() |
+# Define PNACL_LLVM for LLVM_VERSION <= 3.7 |
+if((NOT LLVM_VERSION_MAJOR GREATER 3) AND (NOT LLVM_VERSION_MINOR GREATER 7)) |
+ add_definitions( |
+ -DPNACL_LLVM |
+ ) |
+endif() |
+ |
target_link_libraries(pnacl-sz pthread) |