diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-04 16:46:09 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-04 16:46:09 -0500 |
commit | e2f197b6f77592c84d0c2967cc0e8110c79f2f49 (patch) | |
tree | c405316265ca4248802817b8a99697063c58469d /indra/cmake/FindJsonCpp.cmake | |
parent | 2d9c970babf6bab8d402482315af6be0ffb198dd (diff) | |
parent | 78895f9e0c628dc33268578faf135e967cf30142 (diff) |
merge changes for storm-398
Diffstat (limited to 'indra/cmake/FindJsonCpp.cmake')
-rw-r--r-- | indra/cmake/FindJsonCpp.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/cmake/FindJsonCpp.cmake b/indra/cmake/FindJsonCpp.cmake index 9d16f2aaab..cf84b309c1 100644 --- a/indra/cmake/FindJsonCpp.cmake +++ b/indra/cmake/FindJsonCpp.cmake @@ -21,7 +21,12 @@ EXEC_PROGRAM(${CMAKE_CXX_COMPILER} OUTPUT_STRIP_TRAILING_WHITESPACE ) +# Try to find a library that was compiled with the same compiler version as we currently use. SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson_linux-gcc-${_gcc_COMPILER_VERSION}_libmt.so) +IF (STANDALONE) + # On standalone, assume that the system installed library was compiled with the used compiler. + SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson.so) +ENDIF (STANDALONE) FIND_LIBRARY(JSONCPP_LIBRARY NAMES ${JSONCPP_NAMES} PATHS /usr/lib /usr/local/lib |