Skip to content

Commit

Permalink
[cmake] FindSpdlog utilise automated variables
Browse files Browse the repository at this point in the history
Use automated BYPRODUCT, INCLUDE_DIRS, LIBRARY, VER variables
  • Loading branch information
fuzzard committed Mar 7, 2022
1 parent 5124d6c commit f30741c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmake/modules/FindSpdlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ if(ENABLE_INTERNAL_SPDLOG)
set(EXTRA_ARGS "-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}")
endif()

set(SPDLOG_LIBRARY ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/lib/libspdlog.a)
set(SPDLOG_INCLUDE_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/include)
set(SPDLOG_VERSION ${${MODULE}_VER})

set(CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}
Expand All @@ -40,7 +38,6 @@ if(ENABLE_INTERNAL_SPDLOG)
-DSPDLOG_FMT_EXTERNAL=ON
-DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}
"${EXTRA_ARGS}")
set(BUILD_BYPRODUCTS ${SPDLOG_LIBRARY})

BUILD_DEP_TARGET()

Expand Down

0 comments on commit f30741c

Please sign in to comment.