We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1d09c commit 0d03149Copy full SHA for 0d03149
CMakeLists.txt
@@ -73,6 +73,12 @@ if(BN_REF_COUNT_DEBUG)
73
target_compile_definitions(binaryninjaapi PUBLIC BN_REF_COUNT_DEBUG)
74
endif()
75
76
+if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
77
+ target_compile_definitions(binaryninjaapi PRIVATE _DEBUG)
78
+else()
79
+ target_compile_definitions(binaryninjaapi PRIVATE NDEBUG)
80
+endif()
81
+
82
add_subdirectory(vendor/fmt EXCLUDE_FROM_ALL)
83
set_target_properties(fmt PROPERTIES POSITION_INDEPENDENT_CODE ON)
84
target_link_libraries(binaryninjaapi PUBLIC fmt::fmt)
0 commit comments