- I’m trying to generate Xcode project file of some libraries with CMake.
- I want to generate dSYM file in all build config type.
- I set values in all my CMakelists.txt as below:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym")
-
After CMake generate my xcodeproj file, I find out “Generate Debug Symbols” is set to true in Debug but set to false in Release build type
-
I only find it happened in one library, and other libraries worked perfectly.
-
Does anyone have a clue?