Skip to content
Snippets Groups Projects
Commit f460e82b authored by Eidolon's avatar Eidolon
Browse files

cmake: link Rpcrt4 (for uuid) to openmpt on win32

parent 4a3dfae2
No related branches found
No related tags found
1 merge request!1856cmake: build zlib manually in internal build
......@@ -492,6 +492,9 @@ if(NOT "${SRB2_CONFIG_SYSTEM_LIBRARIES}")
# -DLIBOPENMPT_BUILD
configure_file("openmpt_svn_version.h" "svn_version.h")
add_library(openmpt "${SRB2_INTERNAL_LIBRARY_TYPE}" ${openmpt_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/svn_version.h)
if("${CMAKE_SYSTEM_NAME}" STREQUAL Windows)
target_link_libraries(openmpt PRIVATE Rpcrt4)
endif()
target_compile_features(openmpt PRIVATE cxx_std_11)
target_compile_definitions(openmpt PRIVATE -DLIBOPENMPT_BUILD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment