settings.libcxx -> settings.compiler.libcxx
This commit is contained in:
parent
80e4a96d9b
commit
0ba34ee7f5
17
conanfile.py
17
conanfile.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue