We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d36872 commit 1dfbc4cCopy full SHA for 1dfbc4c
CMakeLists.txt
@@ -19,10 +19,17 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
19
add_compile_options("-Wall" "-Wpedantic" "-Wextra" "-fexceptions")
20
endif()
21
else()
22
- message(STATUS "CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} set by parent project.")
+ message(STATUS "${PROJECT_NAME}: CMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD} set by parent project.")
23
24
set(CMAKE_CXX_STANDARD_REQUIRED ON)
25
26
+string(FIND "${CMAKE_CXX_FLAGS_DEBUG}" "-O0" nPos)
27
+if(${nPos} EQUAL "-1")
28
+ SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -ggdb -D_DEBUG -DDEBUG")
29
+else()
30
+ message(STATUS "${PROJECT_NAME}: CMAKE_CXX_FLAGS_DEBUG hat bereits -O0 enthalten")
31
+endif()
32
+
33
set(targetSrc
34
${CMAKE_CURRENT_LIST_DIR}/ServMain.cpp
35
)
0 commit comments