1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Fix cmake library default build problem since moving to lib/

Also make Lua library check a cmake module
This commit is contained in:
Loic Blot 2017-04-07 23:56:02 +02:00
parent 4af99b75cf
commit ff4fef570e
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
4 changed files with 17 additions and 19 deletions

View file

@ -20,7 +20,7 @@ endif()
if(NOT JSONCPP_FOUND)
message(STATUS "Using bundled JSONCPP library.")
set(JSON_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp PARENT_SCOPE)
set(JSON_LIBRARY jsoncpp PARENT_SCOPE)
add_subdirectory(jsoncpp)
set(JSON_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/jsoncpp)
set(JSON_LIBRARY jsoncpp)
add_subdirectory(lib/jsoncpp)
endif()