summaryrefslogtreecommitdiff
path: root/indra/cmake/JsonCpp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/JsonCpp.cmake')
-rw-r--r--indra/cmake/JsonCpp.cmake22
1 files changed, 9 insertions, 13 deletions
diff --git a/indra/cmake/JsonCpp.cmake b/indra/cmake/JsonCpp.cmake
index 14bfd32b6b..139735ed05 100644
--- a/indra/cmake/JsonCpp.cmake
+++ b/indra/cmake/JsonCpp.cmake
@@ -6,16 +6,12 @@ if( TARGET jsoncpp::jsoncpp )
endif()
create_target( jsoncpp::jsoncpp)
-if (USESYSTEMLIBS)
- include(FindJsonCpp)
-else (USESYSTEMLIBS)
- use_prebuilt_binary(jsoncpp)
- if (WINDOWS)
- set_target_libraries( jsoncpp::jsoncpp json_libmd.lib )
- elseif (DARWIN)
- set_target_libraries( jsoncpp::jsoncpp libjson_darwin_libmt.a )
- elseif (LINUX)
- set_target_libraries( jsoncpp::jsoncpp libjson_linux-gcc-4.1.3_libmt.a )
- endif (WINDOWS)
- set_target_include_dirs( jsoncpp::jsoncpp ${LIBS_PREBUILT_DIR}/include/json)
-endif (USESYSTEMLIBS)
+use_prebuilt_binary(jsoncpp)
+if (WINDOWS)
+ set_target_libraries( jsoncpp::jsoncpp json_libmd.lib )
+elseif (DARWIN)
+ set_target_libraries( jsoncpp::jsoncpp libjson_darwin_libmt.a )
+elseif (LINUX)
+ set_target_libraries( jsoncpp::jsoncpp libjson_linux-gcc-4.1.3_libmt.a )
+endif (WINDOWS)
+set_target_include_dirs( jsoncpp::jsoncpp ${LIBS_PREBUILT_DIR}/include/json)