build: restricted generating test_main.cpp in cmake to Windows only

This commit is contained in:
mlangkabel
2018-04-03 17:45:06 +02:00
parent 42ed53e71e
commit f41c64d3f6
+3 -1
View File
@@ -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)