Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Export symbols when running MSVC
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Mar 16, 2018
1 parent 2b526c0 commit a5077c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def requirements(self):
def build(self):
cmake = CMake(self)
cmake.definitions["PCRE_BUILD_TESTS"] = False
if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
cmake.definitions["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = self.options.shared
cmake.configure(build_folder=self.build_subfolder)
cmake.build()
cmake.install()
Expand Down
2 changes: 1 addition & 1 deletion test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test(self):
bin_path = os.path.join("bin", "test_package")
arguments = "\\\\d+ 2018"
if self.settings.os == "Windows":
self.run(bin_path)
self.run("%s %s" % (bin_path, arguments))
elif self.settings.os == "Macos":
self.run("DYLD_LIBRARY_PATH=%s %s %s" % (os.environ.get('DYLD_LIBRARY_PATH', ''), bin_path, arguments))
else:
Expand Down

0 comments on commit a5077c9

Please sign in to comment.