From 50ff34288a188180fbaf198d880eb2d92cffd6c6 Mon Sep 17 00:00:00 2001
From: Eric Kilmer <eric.d.kilmer@gmail.com>
Date: Thu, 26 Mar 2020 10:11:13 -0400
Subject: [PATCH] Fix finding version file (#114)

---
 pe-parser-library/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pe-parser-library/CMakeLists.txt b/pe-parser-library/CMakeLists.txt
index cde9917..5f1ba62 100644
--- a/pe-parser-library/CMakeLists.txt
+++ b/pe-parser-library/CMakeLists.txt
@@ -3,7 +3,7 @@ project(pe-parser-library)
 
 message(STATUS "VERSION file: ${CMAKE_SOURCE_DIR}/VERSION")
 
-file(READ "${CMAKE_SOURCE_DIR}/VERSION" PEPARSE_VERSION)
+file(READ "${PROJECT_SOURCE_DIR}/../VERSION" PEPARSE_VERSION)
 string(STRIP "${PEPARSE_VERSION}" PEPARSE_VERSION)
 add_compile_definitions(PEPARSE_VERSION="${PEPARSE_VERSION}")