aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 00:42:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 00:42:46 +0300
commit77df1f06d7a60f8a8b23f362344f256608cc20bf (patch)
treeba8b13770fe25199a609ce5517133fdd2391894f /CMakeLists.txt
parentadd `make install`, `make test`, etc. (diff)
downloadwinapi-debug-77df1f06d7a60f8a8b23f362344f256608cc20bf.tar.gz
winapi-debug-77df1f06d7a60f8a8b23f362344f256608cc20bf.zip
cmake: slight CMakeLists.txt refactoring
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f86a3a9..6a08d9f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.5) # for Boost::* imported targets
project(pdb_repo CXX)
-
enable_testing()
if(MSVC)
@@ -36,7 +35,9 @@ add_library(pdb_repo ${pdb_repo_include} ${pdb_repo_src})
target_compile_definitions(pdb_repo PUBLIC _NO_CVCONST_H)
target_include_directories(pdb_repo PUBLIC include/)
target_include_directories(pdb_repo SYSTEM PUBLIC 3rdparty/microsoft/SafeInt)
-target_link_libraries(pdb_repo PUBLIC Boost::boost PRIVATE Boost::nowide)
+target_link_libraries(pdb_repo
+ PUBLIC Boost::boost
+ PRIVATE Boost::disable_autolinking Boost::nowide)
target_link_libraries(pdb_repo PRIVATE dbghelp)
if(MINGW)