From f41c64d3f6551d1f10f84ea5333a7f3a1a9eae35 Mon Sep 17 00:00:00 2001 From: mlangkabel Date: Tue, 3 Apr 2018 17:45:06 +0200 Subject: [PATCH] build: restricted generating test_main.cpp in cmake to Windows only --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 608bef97..bf5205da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -700,7 +700,9 @@ else () endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES ) endif () -file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_main.cpp "") +if (WIN32) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_main.cpp "") +endif () add_subdirectory(src/test)