From a48572d577684b94b09de550dd042c2d35fa311b Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 12 Jun 2017 12:29:04 +0200 Subject: [PATCH] Let last commit also work on non Windows systems --- rtgui/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtgui/CMakeLists.txt b/rtgui/CMakeLists.txt index 63bbb17b1..7b5140212 100644 --- a/rtgui/CMakeLists.txt +++ b/rtgui/CMakeLists.txt @@ -224,7 +224,10 @@ add_dependencies(rth UpdateInfo) add_dependencies(rth-cli UpdateInfo) # Set executables targets properties, i.e. output filename and compile flags -set_target_properties(rth PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}" LINK_FLAGS "-mwindows" OUTPUT_NAME rawtherapee) +if(WIN32) +set_target_properties(rth PROPERTIES LINK_FLAGS "-mwindows") +endif() +set_target_properties(rth PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}" OUTPUT_NAME rawtherapee) set_target_properties(rth-cli PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}" OUTPUT_NAME rawtherapee-cli) # Add linked libraries dependencies to executables targets