Skip to content

Commit 7f2131c

Browse files
committed
Fix Dia Isuse & Some Build Fails
1 parent b8285ed commit 7f2131c

9 files changed

Lines changed: 17 additions & 13 deletions

File tree

CMake/Config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@PACKAGE_INIT@
2-
include("${CMAKE_CURRENT_LIST_DIR}/vccovTargets.cmake")
2+
include("${CMAKE_CURRENT_LIST_DIR}/vcovTargets.cmake")

CMake/FindDia.cmake

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
# Dia_FOUND - True if the DIA library was found.
1313
#==========================================================================]
1414

15-
find_path(Dia_INCLUDE_DIR dia2.h)
15+
# by default DIA directories are not addded to system envirment variables
16+
# this need to be run from a developper command prompet
17+
find_path(Dia_INCLUDE_DIR
18+
NAMES dia2.h
19+
PATHS "$ENV{VSINSTALLDIR}/DIA SDK/include"
20+
NO_DEFAULT_PATH
21+
)
1622

1723
string(TOLOWER "${CMAKE_GENERATOR_PLATFORM}" _dia_platform)
18-
message(STATUS "Detected platform: ${_dia_platform}")
1924

2025
if(_dia_platform STREQUAL "x64" OR _dia_platform STREQUAL "amd64")
2126
set(_DIA_LIB_PATHS ${Dia_INCLUDE_DIR}/../lib/amd64)
@@ -32,12 +37,10 @@ find_library(Dia_LIBRARY diaguids.lib
3237
NO_DEFAULT_PATH
3338
)
3439

35-
message(STATUS "DIA architecture directories: ${_DIA_ARCH_DIRS}")
36-
3740
include(FindPackageHandleStandardArgs)
3841
find_package_handle_standard_args(Dia DEFAULT_MSG Dia_INCLUDE_DIR Dia_LIBRARY)
3942

4043
if(Dia_FOUND)
4144
set(Dia_INCLUDE_DIRS ${Dia_INCLUDE_DIR})
4245
set(Dia_LIBRARIES ${Dia_LIBRARY})
43-
endif()
46+
endif()

CMake/FindVcov.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#[=======================================================================[.rst:
2-
# Findvcov
2+
# FindVcov
33
# -----------
44
# Find the Vcov library
55
#
6-
# find_package(vcov [<version>] REQUIRED)
6+
# find_package(Vcov [<version>] REQUIRED)
77
#
88
# - Vcov_FOUND - True if the library was found.
99
# - Vcov_VERSION - The version of the library.

Common/MiniDump.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#pragma once
1818

1919
#include "CommonExport.h"
20+
#include <windows.h>
2021
#include <DbgHelp.h>
2122

2223
namespace Tools

Console/OpenCppCoverage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
#pragma once
18-
18+
#define NOMINMAX
1919
#include "ConsoleExport.h"
2020
#include <iosfwd>
2121

Core/Debugger.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#pragma once
1818

1919
#include "CoreExport.h"
20-
#include <Windows.h>
20+
#include <windows.h>
2121
#include <boost/optional/optional.hpp>
2222
#include <unordered_map>
2323

Core/Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "StartInfo.hpp"
2121
#include "Tool.hpp"
2222
#include "stdafx.h"
23-
#include <Windows.h>
23+
#include <windows.h>
2424
#include <boost/optional.hpp>
2525
#include <vector>
2626

Filter/LineInfo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#pragma once
1818

19-
#include <minwindef.h>
19+
#include <windows.h>
2020
#include <vector>
2121

2222
namespace FileFilter

Filter/ReleaseCoverageFilter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "FilterExport.h"
2020
#include <filesystem>
2121
#include <memory>
22-
#include <minwindef.h>
22+
#include <windows.h>
2323
#include <unordered_map>
2424
#include <unordered_set>
2525

0 commit comments

Comments
 (0)