diff --git a/CMakeLists.txt b/CMakeLists.txt index a4f1dc7456b7a8e646f10dfc4b0d00e040b8400e..29a37a543c388f621e9e25d9306adcd87af2c6a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ add_compile_definitions( PROJECT_NAME=${PROJECT_NAME} PROJECT_VERSION=${PROJECT_VERSION} LOG4TANGO_HAVE_INT64_T + WIN32_LEAN_AND_MEAN ) file(GLOB_RECURSE sources diff --git a/conanfile.py b/conanfile.py index 89a2f6cd762fa7e87bc933feebdac16216add4c7..41688dd6e814b032174ffc5a9ef61c757237a583 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,4 +1,5 @@ from conan import ConanFile +from conan.tools.cmake import CMakeToolchain, CMakeDeps class electrometersRecipe(ConanFile): name = "electrometers" @@ -25,11 +26,3 @@ class electrometersRecipe(ConanFile): self.requires("yat/[>=1.0]@soleil/stable") if self.settings.os == "Linux": self.requires("crashreporting2/[>=1.0]@soleil/stable") - - def config_options(self): - if self.settings.os == "Windows": - self.options.rm_safe("fPIC") - - def configure(self): - if self.options.shared: - self.options.rm_safe("fPIC")