settings.libcxx -> settings.compiler.libcxx

This commit is contained in:
Pär Winzell 2019-05-11 16:38:29 -07:00
parent 80e4a96d9b
commit 0ba34ee7f5
1 changed files with 12 additions and 5 deletions

View File

@ -8,16 +8,23 @@ from conans import ConanFile, CMake
class FBX2glTFConan(ConanFile): class FBX2glTFConan(ConanFile):
settings = "os", "compiler", "build_type", "arch" settings = "os", "compiler", "build_type", "arch"
requires = (("boost_filesystem/1.69.0@bincrafters/stable"), requires = (
("fmt/5.3.0@bincrafters/stable")) ("boost_filesystem/1.69.0@bincrafters/stable"),
("fmt/5.3.0@bincrafters/stable"),
)
generators = "cmake_find_package", "cmake_paths" generators = "cmake_find_package", "cmake_paths"
def configure(self): def configure(self):
if self.settings.compiler == "gcc" and self.settings.libcxx == "libstdc++": if (
raise Exception("Rerun 'conan install' with argument: '-s compiler.libcxx=libstdc++11'") self.settings.compiler == "gcc"
and self.settings.compiler.libcxx == "libstdc++"
):
raise Exception(
"Rerun 'conan install' with argument: '-s compiler.libcxx=libstdc++11'"
)
def build(self): def build(self):
cmake = CMake(self) cmake = CMake(self)
cmake.definitions["FBXSDK_SDKS"] = os.getenv('FBXSDK_SDKS', 'sdk') cmake.definitions["FBXSDK_SDKS"] = os.getenv("FBXSDK_SDKS", "sdk")
cmake.configure() cmake.configure()
cmake.build() cmake.build()