Unique lib target name

This commit is contained in:
Julien Schueller
2018-10-03 09:04:01 +02:00
committed by Christopher Dunn
parent 2baad4923e
commit 010a2d04d3
3 changed files with 20 additions and 47 deletions

View File

@@ -9,10 +9,8 @@ ADD_EXECUTABLE( jsoncpp_test
IF(BUILD_SHARED_LIBS)
ADD_DEFINITIONS( -DJSON_DLL )
TARGET_LINK_LIBRARIES(jsoncpp_test jsoncpp_lib)
ELSE(BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES(jsoncpp_test jsoncpp_lib_static)
ENDIF()
TARGET_LINK_LIBRARIES(jsoncpp_test jsoncpp_lib)
# another way to solve issue #90
#set_target_properties(jsoncpp_test PROPERTIES COMPILE_FLAGS -ffloat-store)