Merge pull request #886 from SvenPStarFinanz/next

COMPILE_FLAGS property only once per target, avoid overwriting.
This commit is contained in:
Geoff McLane 2020-10-02 18:16:04 +02:00 committed by GitHub
commit 60ae043431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -412,9 +412,7 @@ if (BUILD_SHARED_LIB)
VERSION ${LIBTIDY_VERSION} VERSION ${LIBTIDY_VERSION}
SOVERSION ${TIDY_MAJOR_VERSION} ) SOVERSION ${TIDY_MAJOR_VERSION} )
set_target_properties( ${name} PROPERTIES set_target_properties( ${name} PROPERTIES
COMPILE_FLAGS "-DBUILD_SHARED_LIB" ) COMPILE_FLAGS "-DBUILD_SHARED_LIB -DBUILDING_SHARED_LIB")
set_target_properties( ${name} PROPERTIES
COMPILE_FLAGS "-DBUILDING_SHARED_LIB" )
install(TARGETS ${name} install(TARGETS ${name}
RUNTIME DESTINATION ${BIN_INSTALL_DIR} RUNTIME DESTINATION ${BIN_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR}