Skip to content

Fix visiblity warnings in apple-clang build #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SoptConan(ConanFile):
license = "GPL-2.0"
description = "SOPT is an open-source C++ package available under the license below. It performs Sparse OPTimisation using state-of-the-art convex optimisation algorithms. It solves a variety of sparse regularisation problems, including the Sparsity Averaging Reweighted Analysis (SARA) algorithm."


settings = "os", "compiler", "build_type", "arch"
requires = ["eigen/3.3.7","catch2/2.13.7","benchmark/1.6.0", "libtiff/4.3.0",]
generators = "CMakeDeps"
Expand Down Expand Up @@ -43,7 +43,7 @@ def requirements(self):

if self.options.docs == 'on':
self.requires("doxygen/1.9.2")

def generate(self):
tc = CMakeToolchain(self)

Expand All @@ -61,14 +61,18 @@ def generate(self):
tc.variables['CMAKE_C_COMPILER_LAUNCHER'] = "ccache"
tc.variables['CMAKE_CXX_COMPILER_LAUNCHER'] = "ccache"

tc.variables['CMAKE_VERBOSE_MAKEFILE:BOOL'] = "ON"
tc.variables['CMAKE_VERBOSE_MAKEFILE:BOOL'] = "ON"

if (self.settings.compiler == "apple-clang"):
tools.build:cxxflags=["-fvisibility=default"]

tc.generate()

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def package(self):
cmake = CMake(self)
cmake.configure()
Expand Down