Skip to content

Commit

Permalink
Fix CMake debug build with MSVC, fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed Aug 11, 2023
1 parent 516a4c6 commit ceedb39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ endif(USE_XMLWRITER)

if(MOBI_DEBUG)
add_definitions(-DMOBI_DEBUG)
add_compile_options(-pedantic -Wall -Wextra -Werror)
message(STATUS "CMAKE_CXX_COMPILER_ID=${CMAKE_C_COMPILER_ID}")
if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
add_compile_options(-pedantic -Wall -Wextra -Werror)
endif()
endif(MOBI_DEBUG)

if(MOBI_DEBUG_ALLOC)
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
2023-08-10: Fix CMake debug build with MSVC, fixes #46
2023-07-11: Clean up unused value
2023-07-11: Fix clang warning about missing function prototypes (-Wstrict-prototypes)
2023-02-21: Update Xcode project settings
Expand Down

0 comments on commit ceedb39

Please sign in to comment.