Skip to content

Commit 1705a17

Browse files
Moved debug postfix section, so it also affects pcap++
1 parent 8ad12e7 commit 1705a17

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
2828
message(STATUS "Module Path: ${CMAKE_MODULE_PATH}")
2929
message(STATUS "Prefix Path: ${CMAKE_PREFIX_PATH}")
3030

31+
# Set Debug postfix
32+
set(CMAKE_DEBUG_POSTFIX d)
33+
set(CMAKE_MINSIZEREL_POSTFIX minsize)
34+
set(CMAKE_RELWITHDEBINFO_POSTFIX reldbg)
35+
3136
# CMake Options
3237
include (CMakeDependentOption)
3338

@@ -94,14 +99,8 @@ if (UDPCAP_THIRDPARTY_USE_BUILTIN_GTEST)
9499
include(thirdparty/GTest/GTest_make_available.cmake)
95100
endif()
96101

97-
98102
#----------------------------------------------
99103

100-
# Set Debug postfix
101-
set(CMAKE_DEBUG_POSTFIX d)
102-
set(CMAKE_MINSIZEREL_POSTFIX minsize)
103-
set(CMAKE_RELWITHDEBINFO_POSTFIX reldbg)
104-
105104
# Add main udpcap library
106105
add_subdirectory(udpcap)
107106

0 commit comments

Comments
 (0)