Skip to content

Commit b9a4bbf

Browse files
committed
- looks like Release bits are found under build\Release on github workflow
1 parent 0bb09f7 commit b9a4bbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ add_library(perf perflib/perfhelper.c perflib/perfsslhelper.c perflib/threads.c
132132

133133
if(WIN32)
134134
target_sources(perf PRIVATE perflib/getopt.c perflib/basename.c perflib/err.c)
135+
#
136+
# windows release build on github workflow places places .exe files under
137+
# build\Release. This tweak hopes to place or .exe files under \build
138+
# for both build types. It did not happen on local Win11 installation.
139+
#
140+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${OUTPUT_DIRECTORY}")
141+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIRECTORY}")
135142
endif()
136143

137144
target_include_directories(perf PUBLIC "${PROJECT_SOURCE_DIR}")

0 commit comments

Comments
 (0)