Skip to content

Commit

Permalink
conan-io#4806 nsync: add CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed Sep 16, 2021
1 parent 26c62b8 commit 864c257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion recipes/nsync/all/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.4)
project(cmake_wrapper)

include(conanbuildinfo.cmake)
conan_basic_setup()

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

add_subdirectory(source_subfolder)
6 changes: 3 additions & 3 deletions recipes/nsync/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def package(self):
cmake = self._configure_cmake()
cmake.install()
if self.settings.os == "Windows" and self.options.shared:
self.copy("bin/*.dll", dst='lib', src=self._build_subfolder)
self.copy("bin/*.dll", dst="bin", keep_path=False)

def package_info(self):
self.cpp_info.filenames["cmake_find_package"] = "nsync"
Expand All @@ -91,5 +91,5 @@ def _def_compoment(self, name, lib=None):

if self.settings.os in ["Linux", "FreeBSD"]:
component.system_libs = ["pthread"]
if self.settings.os == "Windows" and self.options.shared:
component.libdirs = ["lib"]
if self.settings.os == "Windows":
component.libdirs = ["lib", "bin"]

0 comments on commit 864c257

Please sign in to comment.