From f555fa787f54ca1fa23162fa0ade9addab387293 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 3 Mar 2019 22:57:10 +0100 Subject: CMake: simplify writing qt.conf on Windows Signed-off-by: Rolf Eike Beer --- CMakeLists.txt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 54ce2f11d..1bf03a09c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,15 +364,9 @@ add_dependencies(subsurface_corelib version) # add platform specific actions if(CMAKE_SYSTEM_NAME STREQUAL "Windows") - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/qt.conf - COMMAND echo \"[Paths]\" > ${CMAKE_BINARY_DIR}/qt.conf \; echo \"Prefix=.\" >> ${CMAKE_BINARY_DIR}/qt.conf - ) - add_custom_target( - generate_qtconf - DEPENDS ${CMAKE_BINARY_DIR}/qt.conf - ) - add_dependencies(${SUBSURFACE_TARGET} generate_qtconf) + file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "[Paths] +Prefix=. +") endif() # build an automated html exporter -- cgit v1.2.3-70-g09d2