Apply CMake format

This commit is contained in:
Martchus 2020-07-07 12:14:05 +02:00
parent 07e5752af8
commit 84011c2768
2 changed files with 10 additions and 3 deletions

View File

@ -163,7 +163,8 @@ else ()
endif ()
# incorporate the SOVERSION into the library name for mingw-w64 targets
if (BUILD_SHARED_LIBS AND NOT META_IS_PLUGIN
if (BUILD_SHARED_LIBS
AND NOT META_IS_PLUGIN
AND MINGW
AND VERSIONED_MINGW_LIBRARIES)
set_target_properties(${META_TARGET_NAME} PROPERTIES SUFFIX "-${META_SOVERSION}.dll")

View File

@ -56,11 +56,17 @@ endif ()
# create Windows rc file from template
configure_file("${RC_TEMPLATE_FILE}" "${WINDOWS_RC_FILE}-configured.rc")
file(GENERATE OUTPUT "${WINDOWS_RC_FILE}-$<CONFIG>.rc" INPUT "${WINDOWS_RC_FILE}-configured.rc")
file(
GENERATE
OUTPUT "${WINDOWS_RC_FILE}-$<CONFIG>.rc"
INPUT "${WINDOWS_RC_FILE}-configured.rc")
# set windres as resource compiler
list(APPEND RES_FILES "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc")
set_property(SOURCE "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc" APPEND PROPERTY GENERATED ON)
set_property(
SOURCE "${WINDOWS_RC_FILE}-${CMAKE_BUILD_TYPE}.rc"
APPEND
PROPERTY GENERATED ON)
set(CMAKE_RC_COMPILER_INIT windres)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
enable_language(RC)