Skip to content

Commit 5cc97bb

Browse files
committed
Fix copying 64 bit OpenAL DLL
ARCH_64BITS is defined within SFML but not visible to downstream projects which meant this conditional always evaluated to false and thus the 32 bit OpenAL DLL was used.
1 parent 5721887 commit 5cc97bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if(WIN32)
1717
add_custom_command(
1818
TARGET CMakeSFMLProject
1919
COMMENT "Copy OpenAL DLL"
20-
PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SFML_SOURCE_DIR}/extlibs/bin/$<IF:$<BOOL:${ARCH_64BITS}>,x64,x86>/openal32.dll $<TARGET_FILE_DIR:CMakeSFMLProject>
20+
PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SFML_SOURCE_DIR}/extlibs/bin/$<IF:$<EQUAL:${CMAKE_SIZEOF_VOID_P},8>,x64,x86>/openal32.dll $<TARGET_FILE_DIR:CMakeSFMLProject>
2121
VERBATIM)
2222
endif()
2323

0 commit comments

Comments
 (0)