aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-07-14 23:33:38 +1200
committerMike Taves <mwtoews@gmail.com>2021-07-14 23:46:32 +1200
commitdec2eac09811166761a625bb3efb1aeab4b96c27 (patch)
tree59274805bcd67af3c996476567b947772287b97a /test/unit
parentd902272785a55e48f6b46a907a34a71a5220fccc (diff)
downloadPROJ-dec2eac09811166761a625bb3efb1aeab4b96c27.tar.gz
PROJ-dec2eac09811166761a625bb3efb1aeab4b96c27.zip
CMake: remove external nlohmann_json from INTERFACE_LINK_LIBRARIES target
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt
index 53a14ced..1a080ac5 100644
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -166,10 +166,6 @@ add_executable(test_defmodel
target_link_libraries(test_defmodel
PRIVATE GTest::gtest
PRIVATE ${PROJ_LIBRARIES})
-if(NLOHMANN_JSON STREQUAL "external")
- target_compile_definitions(test_defmodel PRIVATE EXTERNAL_NLOHMANN_JSON)
- target_link_libraries(test_defmodel PRIVATE nlohmann_json::nlohmann_json)
-endif()
add_test(NAME test_defmodel COMMAND test_defmodel)
set_property(TEST test_defmodel
PROPERTY ENVIRONMENT ${PROJ_TEST_ENVIRONMENT})
@@ -180,10 +176,6 @@ add_executable(test_tinshift
target_link_libraries(test_tinshift
PRIVATE GTest::gtest
PRIVATE ${PROJ_LIBRARIES})
-if(NLOHMANN_JSON STREQUAL "external")
- target_compile_definitions(test_tinshift PRIVATE EXTERNAL_NLOHMANN_JSON)
- target_link_libraries(test_tinshift PRIVATE nlohmann_json::nlohmann_json)
-endif()
add_test(NAME test_tinshift COMMAND test_tinshift)
set_property(TEST test_tinshift
PROPERTY ENVIRONMENT ${PROJ_TEST_ENVIRONMENT})