Enable debug output on linux (#45)

This commit is contained in:
Jan Šimek 2022-06-12 10:44:22 +02:00 committed by GitHub
parent c0b98ba90e
commit 8c2b9c7aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -247,6 +247,11 @@ if(WIN32)
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_WARNINGS
)
else()
target_compile_definitions(${EXECUTABLE_NAME} PRIVATE
$<$<CONFIG:Debug>:_DEBUG>
$<$<CONFIG:RelWithDebInfo>:_DEBUG>
)
endif()
if(WIN32)

View File

@ -142,7 +142,7 @@ int debugPrint(const char* format, ...)
#ifdef _WIN32
OutputDebugStringA(string);
#else
printf(string);
printf("%s", string);
#endif
#endif
rc = -1;