File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ ADD_EXECUTABLE(jsontestrunner_exe
5
5
)
6
6
7
7
IF (BUILD_SHARED_LIBS )
8
- ADD_DEFINITIONS ( -DJSON_DLL )
9
8
TARGET_LINK_LIBRARIES (jsontestrunner_exe jsoncpp_lib )
9
+ SET_TARGET_PROPERTIES (jsontestrunner_exe PROPERTIES COMPILE_DEFINITIONS JSON_DLL )
10
10
ELSE (BUILD_SHARED_LIBS )
11
11
TARGET_LINK_LIBRARIES (jsontestrunner_exe jsoncpp_lib_static )
12
12
ENDIF ()
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ ADD_EXECUTABLE( jsoncpp_test
8
8
9
9
10
10
IF (BUILD_SHARED_LIBS )
11
- ADD_DEFINITIONS ( -DJSON_DLL )
12
11
TARGET_LINK_LIBRARIES (jsoncpp_test jsoncpp_lib )
12
+ SET_TARGET_PROPERTIES (jsoncpp_test PROPERTIES COMPILE_DEFINITIONS JSON_DLL )
13
13
ELSE (BUILD_SHARED_LIBS )
14
14
TARGET_LINK_LIBRARIES (jsoncpp_test jsoncpp_lib_static )
15
15
ENDIF ()
You can’t perform that action at this time.
0 commit comments