From f281e5871b87cb839e55aa4eb68f501cab85ff4e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 14 Feb 2016 21:56:32 -0400 Subject: [PATCH] Only try to make lovec.exe in Windows. --- CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5539c30c0..289cf7d15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,9 +35,12 @@ Please see http://bitbucket.org/rude/megasource endif() set(LOVE_EXE_NAME love) -set(LOVE_CONSOLE_EXE_NAME lovec) set(LOVE_LIB_NAME liblove) +if(MSVC) + set(LOVE_CONSOLE_EXE_NAME lovec) +endif() + if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(LOVE_X64 TRUE) set(LOVE_TARGET_PLATFORM x64) @@ -1310,7 +1313,11 @@ endif() # love (executable) # add_executable(${LOVE_EXE_NAME} WIN32 src/love.cpp ${LOVE_RC}) -add_executable(${LOVE_CONSOLE_EXE_NAME} src/love.cpp ${LOVE_RC}) + +if(LOVE_CONSOLE_EXE_NAME) + add_executable(${LOVE_CONSOLE_EXE_NAME} src/love.cpp ${LOVE_RC}) +endif() + target_link_libraries(love liblove) # Add post build steps to move the DLLs next to the binary. Otherwise