Skip to content

Commit

Permalink
openvr: fix jsoncpp target
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 1, 2023
1 parent e116602 commit 0b5315d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/openvr/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires("jsoncpp/1.9.5", transitive_libs=True)
self.requires("jsoncpp/1.9.5", transitive_headers=True, transitive_libs=True)

def validate(self):
if self.settings.compiler.cppstd:
Expand Down Expand Up @@ -81,7 +81,7 @@ def _patch_sources(self):
# Add jsoncpp dependency
save(self, os.path.join(self.source_folder, "src", "CMakeLists.txt"),
"find_package(jsoncpp REQUIRED CONFIG)\n"
"link_libraries(jsoncpp::jsoncpp)\n"
"link_libraries(JsonCpp::JsonCpp)\n"
# FIXME: adding jsoncpp include dir separately should not be necessary
"include_directories(${jsoncpp_INCLUDE_DIRS})",
append=True)
Expand Down

0 comments on commit 0b5315d

Please sign in to comment.