From 4a11c7c9eb06c5a3699eb55db08a12627a267ae6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Dec 2019 04:08:11 +0300 Subject: minor improvements to CMakeLists.txt --- CMakeLists.txt | 6 ++---- utils/CMakeLists.txt | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6442717..99f6420 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,4 @@ -if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) -endif(COMMAND cmake_policy) +cmake_minimum_required(VERSION 3.1) project(pdb_repo CXX) @@ -11,7 +9,7 @@ find_package(Boost REQUIRED) file(GLOB_RECURSE pdb_repo_include "include/*.hpp") file(GLOB_RECURSE pdb_repo_src "src/*.cpp") add_library(pdb_repo ${pdb_repo_include} ${pdb_repo_src}) -target_compile_definitions(pdb_repo PRIVATE WIN32_LEAN_AND_MEAN PUBLIC _NO_CVCONST_H) +target_compile_definitions(pdb_repo PUBLIC _NO_CVCONST_H) target_include_directories(pdb_repo PUBLIC include/) target_include_directories(pdb_repo SYSTEM PUBLIC ${Boost_INCLUDE_DIRS}) target_link_libraries(pdb_repo PRIVATE DbgHelp) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index b662e8e..c4283f4 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -1,16 +1,13 @@ find_package(Boost REQUIRED COMPONENTS filesystem program_options system) add_executable(enum_symbols enum_symbols.cpp command_line.hpp pdb_descr.hpp) -target_compile_definitions(enum_symbols PRIVATE WIN32_LEAN_AND_MEAN) target_include_directories(enum_symbols SYSTEM PRIVATE ${Boost_INCLUDE_DIRS}) target_link_libraries(enum_symbols PRIVATE pdb_repo ${Boost_LIBRARIES}) add_executable(name2addr name2addr.cpp) -target_compile_definitions(name2addr PRIVATE WIN32_LEAN_AND_MEAN) target_include_directories(name2addr SYSTEM PRIVATE ${Boost_INCLUDE_DIRS}) target_link_libraries(name2addr PRIVATE pdb_repo ${Boost_LIBRARIES}) add_executable(addr2name addr2name.cpp command_line.hpp pdb_descr.hpp) -target_compile_definitions(addr2name PRIVATE WIN32_LEAN_AND_MEAN) target_include_directories(addr2name SYSTEM PRIVATE ${Boost_INCLUDE_DIRS}) target_link_libraries(addr2name PRIVATE pdb_repo ${Boost_LIBRARIES}) -- cgit v1.2.3