Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
cmake: add debug compile options
Browse files Browse the repository at this point in the history
  • Loading branch information
Antares0982 committed May 30, 2024
1 parent 6409cf9 commit 80193b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ if(WIN32)
endif()
# endif()


# optimize for Release build
if (CMAKE_BUILD_TYPE MATCHES ".*Rel.*")
message("Release mode, enabling maximal optimization")
else(CMAKE_BUILD_TYPE MATCHES ".*Rel.*")
message("Debug mode, enabling debug symbols")
target_compile_options(pyyjson PUBLIC -g -O0)
endif (CMAKE_BUILD_TYPE MATCHES ".*Rel.*")

# ------------------------------------------------------------------------------
# Install
Expand Down

0 comments on commit 80193b1

Please sign in to comment.