Skip to content

Commit

Permalink
Pass the build type down to cmake configuraiton tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
datalogics-robb committed Sep 4, 2024
1 parent 6498927 commit d63d491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/expat/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def generate(self):
tc.variables["EXPAT_SHARED_LIBS"] = self.options.shared
tc.variables["EXPAT_BUILD_TESTS"] = False
tc.variables["EXPAT_BUILD_TOOLS"] = False
# https://github.com/conan-io/conan/issues/12012
tc.variables["CMAKE_TRY_COMPILE_CONFIGURATION"] = str(self.settings.build_type)
tc.variables["EXPAT_CHAR_TYPE"] = self.options.char_type
if is_msvc(self):
tc.variables["EXPAT_MSVC_STATIC_CRT"] = is_msvc_static_runtime(self)
Expand Down

0 comments on commit d63d491

Please sign in to comment.