Skip to content

Commit 9179aff

Browse files
committed
Update builder.py
1 parent 6e00764 commit 9179aff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cppython/plugins/conan/builder.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ def package_info(self):
158158
# Use native CMake config files to preserve FILE_SET information for C++ modules
159159
# This tells CMakeDeps to skip generating files and use the package's native config
160160
self.cpp_info.set_property("cmake_find_mode", "none")
161-
162-
# Add the CMake config directory to CMAKE_PREFIX_PATH so find_package() can locate it
163-
config_dir = os.path.join("lib", "cmake", "${name}")
164-
self.cpp_info.builddirs.append(config_dir)
161+
self.cpp_info.builddirs = ["."]
165162
166163
def export_sources(self):
167164
copy(self, "CMakeLists.txt", src=self.recipe_folder, dst=self.export_sources_folder)

0 commit comments

Comments
 (0)