Skip to content

Commit

Permalink
Define _CONSOLE
Browse files Browse the repository at this point in the history
  • Loading branch information
otya128 committed Feb 1, 2023
1 parent 682370b commit 8b67382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otvdm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ include_directories(../wine)
add_definitions(-D_X86_)
target_link_libraries(otvdm libwine krnl386)
set(DELAYED_LOADS "/DELAYLOAD:krnl386.exe16 /DELAYLOAD:libwine.dll /DELAYLOAD:user32.dll /DELAYLOAD:kernel32.dll /DELAYLOAD:gdi32.dll /DELAYLOAD:shell32.dll /DELAYLOAD:comdlg32.dll /DELAYLOAD:ADVAPI32.dll")
target_compile_definitions(otvdm PRIVATE -D_CONSOLE)
if (MSVC)
target_compile_definitions(otvdm PRIVATE -D_CONSOLE)
set_target_properties(otvdm PROPERTIES LINK_FLAGS ${DELAYED_LOADS})
endif()
add_executable(otvdmw WIN32 ${SOURCE})
Expand Down

0 comments on commit 8b67382

Please sign in to comment.