Skip to content

Commit

Permalink
Pass wchar_t option to CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Christiansen authored and wdolinar committed Jan 28, 2022
1 parent b47dd2a commit 3c6684c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def build(self):
cmake.definitions["XMS_VERSION"] = '{}'.format(self.version)
cmake.definitions["PYTHON_TARGET_VERSION"] = self.env.get("PYTHON_TARGET_VERSION", "3.6")

if self.settings.compiler == 'Visual Studio':
cmake.definitions["USE_NATIVE_WCHAR_T"] = (self.options.wchar_t == 'builtin')

cmake.configure(source_folder=".")
cmake.build()
cmake.install()
Expand Down

0 comments on commit 3c6684c

Please sign in to comment.