CMake - remove parameter repetition in else() and endif() statements

This follows Professional CMake's recommended practises
This commit is contained in:
Geert Janssens
2020-01-30 12:20:25 +01:00
parent 8365283f18
commit e79e82edcf
11 changed files with 18 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ if (WITH_SQL)
set(WINSOCK_LIB "")
if(MINGW64)
set(WINSOCK_LIB "-lws2_32")
endif(MINGW64)
endif()
target_link_libraries(gncmod-backend-dbi gnc-backend-sql gncmod-engine ${GTK2_LDFLAGS} ${Boost_REGEX_LIBRARY} ${LIBDBI_LIBRARY} ${WINSOCK_LIB})
target_compile_definitions(gncmod-backend-dbi PRIVATE -DG_LOG_DOMAIN=\"gnc.backend.dbi\")
@@ -48,4 +48,4 @@ if (WITH_SQL)
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/gnucash
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# No headers to install
endif(WITH_SQL)
endif()