lighter dependencies, some more info from cmake

This commit is contained in:
Phuntsok Drak-pa 2019-04-27 18:05:08 +02:00
parent c75e6a92ea
commit 419270ee71
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ INCLUDE(CheckCXXCompilerFlag)
function(enable_cxx_compiler_flag_if_supported flag)
string(FIND "${CMAKE_CXX_FLAGS}" "${flag}" flag_already_set)
if(flag_already_set EQUAL -1)
message(STATUS "Testing flag ${flag}")
check_cxx_compiler_flag("${flag}" flag_supported)
if(flag_supported)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}" PARENT_SCOPE)

View File

@ -3,7 +3,7 @@ from conans import CMake, ConanFile
class GeneticImageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = "opencv/4.0.1@conan/stable", "boost/1.69.0@conan/stable", "spdlog/1.3.1@bincrafters/stable", "gtest/1.8.1@bincrafters/stable"
requires = "opencv/4.0.1@conan/stable", "boost_program_options/1.69.0@bincrafters/stable", "spdlog/1.3.1@bincrafters/stable"
generators = "cmake", "gcc", "txt"
def imports(self):