diff options
author | Philipp Kerling <pkerling@casix.org> | 2017-06-02 11:29:09 +0200 |
---|---|---|
committer | Philipp Kerling <pkerling@casix.org> | 2017-06-02 11:29:09 +0200 |
commit | e86cda8d911fc0e1323eb1ea9ae204f5eacac6c3 (patch) | |
tree | 4a67b613977ba67dc48f30033ae5b3c1f1ea1bf4 /cmake | |
parent | 579a8edd420f08fee8892627dfa5639957657e58 (diff) |
Make WinMain.cpp the CORE_MAIN_SOURCE for the win32 platform
Otherwise, posix/main.cpp would still be used
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/windows/ArchSetup.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/scripts/windows/ArchSetup.cmake b/cmake/scripts/windows/ArchSetup.cmake index 11c45cf30a..1ab16113e7 100644 --- a/cmake/scripts/windows/ArchSetup.cmake +++ b/cmake/scripts/windows/ArchSetup.cmake @@ -13,6 +13,8 @@ endif() set(PLATFORM_DIR platform/win32) +set(CORE_MAIN_SOURCE ${CMAKE_SOURCE_DIR}/xbmc/platform/win32/WinMain.cpp) + # Precompiled headers fail with per target output directory. (needs CMake 3.1) set(PRECOMPILEDHEADER_DIR ${PROJECT_BINARY_DIR}/${CORE_BUILD_CONFIG}/objs) |