From dc467ee0f6d0a49be4bd20b621f141228dfec736 Mon Sep 17 00:00:00 2001 From: ipriver Date: Wed, 17 Jun 2020 14:42:49 +0000 Subject: Additional cmake entry for configs Closes #24812 Co-authored-by: Carbenium --- src/server/authserver/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/server/authserver') diff --git a/src/server/authserver/CMakeLists.txt b/src/server/authserver/CMakeLists.txt index 43685fd5621..d1d28a49ce9 100644 --- a/src/server/authserver/CMakeLists.txt +++ b/src/server/authserver/CMakeLists.txt @@ -62,7 +62,7 @@ set_target_properties(authserver FOLDER "server") -if( WIN32 ) +if( COPY_CONF AND WIN32 ) if ( "${CMAKE_MAKE_PROGRAM}" MATCHES "MSBuild" ) add_custom_command(TARGET authserver POST_BUILD @@ -78,10 +78,14 @@ endif() if( UNIX ) install(TARGETS authserver DESTINATION bin) - install(FILES authserver.conf.dist DESTINATION ${CONF_DIR}) + if( COPY_CONF ) + install(FILES authserver.conf.dist DESTINATION ${CONF_DIR}) + endif() elseif( WIN32 ) install(TARGETS authserver DESTINATION "${CMAKE_INSTALL_PREFIX}") - install(FILES authserver.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}") + if( COPY_CONF ) + install(FILES authserver.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}") + endif() endif() # Generate precompiled header -- cgit v1.2.3