We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb837e1 commit 4ce93acCopy full SHA for 4ce93ac
CMakeLists.txt
@@ -46,6 +46,13 @@ if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
46
endif()
47
48
49
+if(CMAKE_SYSTEM_NAME STREQUAL Linux)
50
+ # Pass -fno-omit-frame-pointer while compiling for better backtraces
51
+ add_compile_options(
52
+ "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fno-omit-frame-pointer>"
53
+ "$<$<COMPILE_LANGUAGE:C,CXX>:-fno-omit-frame-pointer>")
54
+endif()
55
+
56
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
57
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
58
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
0 commit comments