Loading cmake/Findjson-c.cmake +3 −5 Changes for cmake/Findjson-c.cmake: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ find_package_handle_standard_args(JsonC # ----------------------------------------------------------------------------- if(JSONC_FOUND) if(JSONC_FOUND AND NOT TARGET JsonC::JsonC) # 1. Define the primary target with the name 'JsonC::JsonC' add_library(JsonC::JsonC SHARED IMPORTED) Loading Loading @@ -72,12 +73,9 @@ if(JSONC_FOUND) ) endif() # ----------------------------------------------------------------------------- # 4. Define Alias for Consumer (Fixes the json-c::json-c-NOTFOUND error) # ----------------------------------------------------------------------------- # The consumer (src/authdb.exe) is looking for json-c::json-c (lowercase). # Create an ALIAS target pointing to the primary target JsonC::JsonC. if(NOT TARGET json-c::json-c) add_library(json-c::json-c ALIAS JsonC::JsonC) endif() endif() Loading Loading
cmake/Findjson-c.cmake +3 −5 Changes for cmake/Findjson-c.cmake: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ find_package_handle_standard_args(JsonC # ----------------------------------------------------------------------------- if(JSONC_FOUND) if(JSONC_FOUND AND NOT TARGET JsonC::JsonC) # 1. Define the primary target with the name 'JsonC::JsonC' add_library(JsonC::JsonC SHARED IMPORTED) Loading Loading @@ -72,12 +73,9 @@ if(JSONC_FOUND) ) endif() # ----------------------------------------------------------------------------- # 4. Define Alias for Consumer (Fixes the json-c::json-c-NOTFOUND error) # ----------------------------------------------------------------------------- # The consumer (src/authdb.exe) is looking for json-c::json-c (lowercase). # Create an ALIAS target pointing to the primary target JsonC::JsonC. if(NOT TARGET json-c::json-c) add_library(json-c::json-c ALIAS JsonC::JsonC) endif() endif() Loading