1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-18 05:28:09 +00:00

Use CMAKE_CURRENT_LIST_DIR instead of CMAKE_SOURCE_DIR when reading version.h

This commit is contained in:
Ionel-Cristinel ANICHITEI 2020-11-17 14:16:35 +02:00
parent 15fe86d7d3
commit 81664ff09f

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
include("${CMAKE_CURRENT_LIST_DIR}/project-meta-info.in")
set(disasm_version_file ${CMAKE_SOURCE_DIR}/inc/version.h)
set(disasm_version_file ${CMAKE_CURRENT_LIST_DIR}/inc/version.h)
file(STRINGS ${disasm_version_file} disasm_ver_major REGEX "DISASM_VERSION_MAJOR")
file(STRINGS ${disasm_version_file} disasm_ver_minor REGEX "DISASM_VERSION_MINOR")