Name the asset viewer openbmh_viewer
On a file system that ignores case the viewer (target openbmh) and the game (OpenBMH, target openbmh_play) were the same file in the build directory, and whichever was linked last replaced the other. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
8a37be898a
commit
0bcb0d2507
1 file changed
+4
@@ -282,7 +282,11 @@ else()
|
|||||||
target_compile_options(bmhcore PRIVATE -Wall -Wextra)
|
target_compile_options(bmhcore PRIVATE -Wall -Wextra)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# The asset viewer of the first milestone (not the game). Its file is named openbmh_viewer: as
|
||||||
|
# "openbmh" it would be the same file as the game (OpenBMH, target openbmh_play below) on a file
|
||||||
|
# system that ignores case, and whichever of the two was linked last would win.
|
||||||
add_executable(openbmh src/main.cpp)
|
add_executable(openbmh src/main.cpp)
|
||||||
|
set_target_properties(openbmh PROPERTIES OUTPUT_NAME openbmh_viewer)
|
||||||
target_link_libraries(openbmh PRIVATE bmhcore ${BMH_SDL_TARGET})
|
target_link_libraries(openbmh PRIVATE bmhcore ${BMH_SDL_TARGET})
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
target_compile_options(openbmh PRIVATE /utf-8)
|
target_compile_options(openbmh PRIVATE /utf-8)
|
||||||
|
|||||||
Reference in new issue
Block a user