Skip to content

Commit

Permalink
build: fix fmod binaries, again
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshParnell committed Apr 26, 2021
1 parent c1c205e commit 9aa5214
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ target_include_directories (phx PUBLIC "ext/include")
target_include_directories (phx PUBLIC "ext/include/bullet")
target_link_directories (phx PUBLIC "ext/lib/${PLATARCH}")

set_target_properties (phx PROPERTIES PREFIX "lib")
set_target_properties (phx PROPERTIES OUTPUT_NAME_DEBUG "phx${ARCH}d")
set_target_properties (phx PROPERTIES OUTPUT_NAME_RELEASE "phx${ARCH}r")
set_target_properties (phx PROPERTIES OUTPUT_NAME_RELWITHDEBINFO "phx${ARCH}")
Expand Down Expand Up @@ -76,8 +77,14 @@ if (WINDOWS)
add_extlib (lz4 liblz4.lib liblz4.dll)
add_extlib (lua51 lua51.lib lua51.dll)
add_extlib (sdl2 SDL2.lib SDL2.dll)
add_extlib (fmod fmodL_vc.lib fmodL.dll)
add_extlib (fmodstudio fmodstudioL_vc.lib fmodstudioL.dll)

if (ARCH EQUAL "32")
add_extlib (fmod fmodL_vc.lib fmodL.dll)
add_extlib (fmodstudio fmodstudioL_vc.lib fmodstudioL.dll)
else ()
add_extlib (fmod fmodL64_vc.lib fmodL64.dll)
add_extlib (fmodstudio fmodstudioL64_vc.lib fmodstudioL64.dll)
endif ()

elseif (LINUX)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9aa5214

Please sign in to comment.