From 1d476a3f691c4b26be0c80594d761fb768d23cf9 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 30 Sep 2019 11:12:50 +0200 Subject: [PATCH] Added compile_flags setting to test_package to ensure that the dependency imported with Conan will compile with restrictive warning flags --- test_package/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt index 8d4e1594..259575d3 100644 --- a/test_package/CMakeLists.txt +++ b/test_package/CMakeLists.txt @@ -25,6 +25,12 @@ project(test_package) set(CMAKE_VERBOSE_MAKEFILE TRUE) +# set path to custom cmake modules +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake") + +# compilation options and flags used in a project development process +include(common/cmake/compile_flags) + include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS)