Browse Source

【主线待合】main模块当前开关有bug

master
Lizongdi 1 day ago
parent
commit
a126caa4e7
  1. 1
      main/CMakeLists.txt
  2. 5
      main/main.c

1
main/CMakeLists.txt

@ -21,6 +21,7 @@ endif()
target_compile_definitions(${TARGET_NAME} PRIVATE target_compile_definitions(${TARGET_NAME} PRIVATE
$<$<CONFIG:Debug>:DEBUG> $<$<CONFIG:Debug>:DEBUG>
${GLOBAL_ENABLED_MACROS} ${GLOBAL_ENABLED_MACROS}
A_BUILD_MAIN_AS_STATIC_LIB
) )
# Include # Include

5
main/main.c

@ -1,9 +1,7 @@
#ifndef MAIN #ifndef MAIN
#ifndef A_BUILD_MAIN_AS_STATIC_LIB
#include <stdio.h> #include <stdio.h>
#include "common.h" #include "common.h"
#ifndef A_BUILD_MAIN_AS_STATIC_LIB
int main(int argc, const char *argv[]) int main(int argc, const char *argv[])
{ {
RD_INIT(); RD_INIT();
@ -12,5 +10,4 @@ int main(int argc, const char *argv[])
return 0; return 0;
} }
#endif #endif
#endif #endif

Loading…
Cancel
Save