Skip to content

CMake Compile with external FMT option #2062

Answered by BobManMasher
BobManMasher asked this question in Q&A
Discussion options

You must be logged in to vote

Hi
I run CMAKE as follows:
'cmake -DSPDLOG_FMT_EXTERNAL=ON'

and this is the content of the spdlogConfig.cmake file:

cat /usr/local/lib/cmake/spdlog/spdlogConfig.cmake
Copyright(c) 2019 spdlog authors
Distributed under the MIT License (http://opensource.org/licenses/MIT)

####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
####### Any changes to this file will be overwritten by the next CMake run ####
####### The input file was spdlogConfig.cmake.in ########

get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)

macro(set_and_check _var _file)
set(${_var} "${_file}")
if(NOT EXISTS "${_file}")
message(FATAL_ERROR "File or dir…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@BobManMasher
Comment options

@tt4g
Comment options

Comment options

You must be logged in to vote
6 replies
@BobManMasher
Comment options

@tt4g
Comment options

@BobManMasher
Comment options

@tt4g
Comment options

@BobManMasher
Comment options

Answer selected by BobManMasher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants