Browse Source

Options added to conan recipe (#159).

main
offa 5 years ago
parent
commit
e16782a315
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      conanfile.py

+ 10
- 0
conanfile.py View File

"Catch2/2.9.2@catchorg/stable", "Catch2/2.9.2@catchorg/stable",
"trompeloeil/v35@rollbear/stable" "trompeloeil/v35@rollbear/stable"
) )
options = {
"unittest": ["ON", "OFF"],
"enable_compat_header": ["ON", "OFF"]
}
default_options = (
"unittest=ON",
"enable_compat_header=OFF"
)


def _configure_cmake(self): def _configure_cmake(self):
cmake = CMake(self) cmake = CMake(self)
cmake.definitions["UNITTEST"] = self.options.unittest
cmake.definitions["ENABLE_COMPAT_HEADER"] = self.options.enable_compat_header
cmake.configure(source_folder=self._source_dir, build_folder="build") cmake.configure(source_folder=self._source_dir, build_folder="build")
return cmake return cmake



Loading…
Cancel
Save