File tree 8 files changed +8
-25
lines changed
8 files changed +8
-25
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ else ()
58
58
target_compile_options (IotDeviceDefender-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
59
59
endif ()
60
60
61
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
62
- target_compile_definitions (IotDeviceDefender-cpp PRIVATE "-DDEBUG_BUILD" )
63
- endif ()
61
+ target_compile_definitions (IotDeviceDefender-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
64
62
65
63
if (BUILD_SHARED_LIBS )
66
64
target_compile_definitions (IotDeviceDefender-cpp PUBLIC "-DAWS_IOTDEVICEDEFENDER_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ else ()
57
57
target_compile_options (Discovery-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
58
58
endif ()
59
59
60
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
61
- target_compile_definitions (Discovery-cpp PRIVATE "-DDEBUG_BUILD" )
62
- endif ()
60
+ target_compile_definitions (Discovery-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
63
61
64
62
if (BUILD_SHARED_LIBS )
65
63
target_compile_definitions (Discovery-cpp PUBLIC "-DAWS_DISCOVERY_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ else ()
57
57
target_compile_options (EventstreamRpc-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
58
58
endif ()
59
59
60
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
61
- target_compile_definitions (EventstreamRpc-cpp PRIVATE "-DDEBUG_BUILD" )
62
- endif ()
60
+ target_compile_definitions (EventstreamRpc-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
63
61
64
62
if (BUILD_SHARED_LIBS )
65
63
target_compile_definitions (EventstreamRpc-cpp PUBLIC "-DAWS_EVENTSTREAMRPC_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -64,10 +64,7 @@ if (MSVC)
64
64
target_compile_options (GreengrassIpc-cpp PRIVATE /bigobj)
65
65
endif ()
66
66
67
-
68
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
69
- target_compile_definitions (GreengrassIpc-cpp PRIVATE "-DDEBUG_BUILD" )
70
- endif ()
67
+ target_compile_definitions (GreengrassIpc-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
71
68
72
69
if (BUILD_SHARED_LIBS )
73
70
target_compile_definitions (GreengrassIpc-cpp PUBLIC "-DAWS_GREENGRASSIPC_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ else ()
57
57
target_compile_options (IotIdentity-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
58
58
endif ()
59
59
60
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
61
- target_compile_definitions (IotIdentity-cpp PRIVATE "-DDEBUG_BUILD" )
62
- endif ()
60
+ target_compile_definitions (IotIdentity-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
63
61
64
62
if (BUILD_SHARED_LIBS )
65
63
target_compile_definitions (IotIdentity-cpp PUBLIC "-DAWS_IOTIDENTITY_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -59,9 +59,7 @@ else ()
59
59
target_compile_options (IotDeviceCommon-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
60
60
endif ()
61
61
62
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
63
- target_compile_definitions (IotDeviceCommon-cpp PRIVATE "-DDEBUG_BUILD" )
64
- endif ()
62
+ target_compile_definitions (IotDeviceCommon-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
65
63
66
64
if (BUILD_SHARED_LIBS )
67
65
target_compile_definitions (IotDeviceCommon-cpp PUBLIC "-DAWS_IOTDEVICECOMMON_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ else ()
57
57
target_compile_options (IotSecureTunneling-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
58
58
endif ()
59
59
60
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
61
- target_compile_definitions (IotSecureTunneling-cpp PRIVATE "-DDEBUG_BUILD" )
62
- endif ()
60
+ target_compile_definitions (IotSecureTunneling-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
63
61
64
62
if (BUILD_SHARED_LIBS )
65
63
target_compile_definitions (IotSecureTunneling-cpp PUBLIC "-DAWS_IOTSECURETUNNELING_USE_IMPORT_EXPORT" )
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ else ()
57
57
target_compile_options (IotShadow-cpp PRIVATE -Wall -Wno-long-long -pedantic -Werror)
58
58
endif ()
59
59
60
- if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug)
61
- target_compile_definitions (IotShadow-cpp PRIVATE "-DDEBUG_BUILD" )
62
- endif ()
60
+ target_compile_definitions (IotShadow-cpp PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD>)
63
61
64
62
if (BUILD_SHARED_LIBS )
65
63
target_compile_definitions (IotShadow-cpp PUBLIC "-DAWS_IOTSHADOW_USE_IMPORT_EXPORT" )
You can’t perform that action at this time.
0 commit comments