mirror of https://github.com/mgba-emu/mgba.git
CMake: Add missing compile definitions to updater-stub
This commit is contained in:
parent
1644132ce7
commit
54f89fec1e
|
@ -933,6 +933,7 @@ endif()
|
||||||
if(BUILD_UPDATER)
|
if(BUILD_UPDATER)
|
||||||
add_executable(updater-stub WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/updater-main.c)
|
add_executable(updater-stub WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/updater-main.c)
|
||||||
target_link_libraries(updater-stub ${OS_LIB} ${PLATFORM_LIBRARY} ${BINARY_NAME})
|
target_link_libraries(updater-stub ${OS_LIB} ${PLATFORM_LIBRARY} ${BINARY_NAME})
|
||||||
|
set_target_properties(updater-stub PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FUNCTION_DEFINES}")
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_target_properties(updater-stub PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup)
|
set_target_properties(updater-stub PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue