From 7a9b07871edfa0cc057f5008907cc7886904c66e Mon Sep 17 00:00:00 2001 From: KimLS Date: Sun, 11 Sep 2016 19:07:30 -0700 Subject: [PATCH] More missing functions, wish our base version of cmake was higher now... --- libs/format/fmt/CMakeLists.txt | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/libs/format/fmt/CMakeLists.txt b/libs/format/fmt/CMakeLists.txt index 186fe81be..3fc872622 100644 --- a/libs/format/fmt/CMakeLists.txt +++ b/libs/format/fmt/CMakeLists.txt @@ -14,34 +14,13 @@ if (FMT_CPPFORMAT) add_library(cppformat ${FMT_SOURCES} ${FMT_HEADERS}) endif () -target_include_directories(fmt INTERFACE +include_directories(fmt INTERFACE $ $) set_target_properties(fmt PROPERTIES VERSION ${FMT_VERSION} SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}) -if (BUILD_SHARED_LIBS) - if (UNIX AND NOT APPLE) - # Fix rpmlint warning: - # unused-direct-shlib-dependency /usr/lib/libformat.so.1.1.0 /lib/libm.so.6. - target_link_libraries(fmt -Wl,--as-needed) - endif () - target_compile_definitions(fmt PRIVATE FMT_EXPORT INTERFACE FMT_SHARED) -endif () - -#------------------------------------------------------------------------------ -# additionally define a header only library when cmake is new enough -if (CMAKE_VERSION VERSION_GREATER 3.1.0 OR CMAKE_VERSION VERSION_EQUAL 3.1.0) - add_library(fmt-header-only INTERFACE) - - target_compile_definitions(fmt-header-only INTERFACE FMT_HEADER_ONLY=1) - - target_include_directories(fmt-header-only INTERFACE - $ - $) -endif () - # Install targets. if (FMT_INSTALL) include(CMakePackageConfigHelpers)