diff --git a/src/jsontestrunner/CMakeLists.txt b/src/jsontestrunner/CMakeLists.txt index cb8ce50..023a44e 100644 --- a/src/jsontestrunner/CMakeLists.txt +++ b/src/jsontestrunner/CMakeLists.txt @@ -5,7 +5,7 @@ add_executable(jsontestrunner_exe ) if(BUILD_SHARED_LIBS) - add_compile_definitions( -DJSON_DLL ) + add_compile_definitions( JSON_DLL ) endif() target_link_libraries(jsontestrunner_exe jsoncpp_lib) diff --git a/src/lib_json/CMakeLists.txt b/src/lib_json/CMakeLists.txt index a8d0733..034f438 100644 --- a/src/lib_json/CMakeLists.txt +++ b/src/lib_json/CMakeLists.txt @@ -34,7 +34,7 @@ endif() if(NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV)) message(WARNING "Locale functionality is not supported") - add_compile_definitions(-DJSONCPP_NO_LOCALE_SUPPORT) + add_compile_definitions(JSONCPP_NO_LOCALE_SUPPORT) endif() set( JSONCPP_INCLUDE_DIR ../../include ) @@ -68,7 +68,7 @@ else(JSONCPP_WITH_CMAKE_PACKAGE) endif() if(BUILD_SHARED_LIBS) - add_compile_definitions( -DJSON_DLL_BUILD ) + add_compile_definitions( JSON_DLL_BUILD ) endif() diff --git a/src/test_lib_json/CMakeLists.txt b/src/test_lib_json/CMakeLists.txt index 999d3e8..a8740da 100644 --- a/src/test_lib_json/CMakeLists.txt +++ b/src/test_lib_json/CMakeLists.txt @@ -8,7 +8,7 @@ add_executable( jsoncpp_test if(BUILD_SHARED_LIBS) - add_compile_definitions( -DJSON_DLL ) + add_compile_definitions( JSON_DLL ) endif() target_link_libraries(jsoncpp_test jsoncpp_lib)