[cmake] Remove unneeded fmt sources

pull/3/head
Hleb Valoshka 2019-04-04 17:26:43 +03:00
parent c465ab2615
commit bcd7b97d89
2 changed files with 1 additions and 15 deletions

View File

@ -62,13 +62,6 @@ elseif(_UNIX AND ENABLE_THEORA)
)
endif()
if(NOT fmt_FOUND)
list(APPEND CELESTIA_SOURCES
${CMAKE_SOURCE_DIR}/thirdparty/fmt/src/format.cc
${CMAKE_SOURCE_DIR}/thirdparty/fmt/src/posix.cc
)
endif()
add_library(celestia STATIC ${CELESTIA_SOURCES})
#[[
add_library(celestia SHARED ${CELESTIA_SOURCES})

View File

@ -1,11 +1,4 @@
if(NOT fmt_FOUND)
list(APPEND FMT_SOURCES
${CMAKE_SOURCE_DIR}/thirdparty/fmt/src/format.cc
${CMAKE_SOURCE_DIR}/thirdparty/fmt/src/posix.cc
)
endif()
foreach(tool xyzv2bin bin2xyzv)
add_executable(${tool} "${tool}.cpp" ${FMT_SOURCES})
add_executable(${tool} "${tool}.cpp")
install(TARGETS ${tool} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endforeach()