mirror of
https://github.com/bitdefender/bddisasm.git
synced 2024-12-22 22:18:09 +00:00
Use CMAKE_CURRENT_LIST_DIR instead of CMAKE_SOURCE_DIR when reading version.h
This commit is contained in:
parent
15fe86d7d3
commit
81664ff09f
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
|
|||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/project-meta-info.in")
|
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_major REGEX "DISASM_VERSION_MAJOR")
|
||||||
file(STRINGS ${disasm_version_file} disasm_ver_minor REGEX "DISASM_VERSION_MINOR")
|
file(STRINGS ${disasm_version_file} disasm_ver_minor REGEX "DISASM_VERSION_MINOR")
|
||||||
|
Loading…
Reference in New Issue
Block a user