File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 22cd " %~dp0 ..\.."
33mkdir build
44cd build
5- cmake -DCMAKE_CXX_FLAGS= " -D__VMAWARE_DEBUG__ " -G " Visual Studio 17 2022" -A Win32 -S ..
5+ cmake -DDEBUG_OUTPUT=ON -G " Visual Studio 17 2022" -A Win32 -S ..
66" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" " VMAware.sln" /Build " Release|Win32" /Project " vmaware" /ProjectConfig " Release|Win32"
77cd Release
88vmaware.exe
Original file line number Diff line number Diff line change 44cd " %~dp0 ..\.."
55mkdir build
66cd build
7- cmake -DCMAKE_CXX_FLAGS= " -D__VMAWARE_DEBUG__ " .. -G " Visual Studio 17 2022" -A x64 -S ..
7+ cmake -DDEBUG_OUTPUT=ON .. -G " Visual Studio 17 2022" -A x64 -S ..
88" C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" " VMAware.sln" /Build " Release|x64" /Project " vmaware" /ProjectConfig " Release|x64"
99cd Release
1010vmaware.exe
Original file line number Diff line number Diff line change @@ -109,6 +109,12 @@ else()
109109 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2" )
110110endif ()
111111
112+ # extra flags
113+ option (DEBUG_OUTPUT "Force __VMAWARE_DEBUG__ define" OFF )
114+ if (DEBUG_OUTPUT)
115+ target_compile_definitions (${TARGET} PRIVATE __VMAWARE_DEBUG__ )
116+ endif ()
117+
112118# add executable
113119set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${BUILD_DIR} " )
114120add_executable (${TARGET} "src/cli.cpp" )
You can’t perform that action at this time.
0 commit comments