Skip to content

Commit

Permalink
Fix for wrong library flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-pino committed May 7, 2024
1 parent 882ef7b commit d9fb8d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ find_package(PkgConfig REQUIRED)
find_package(Boost COMPONENTS system thread REQUIRED)
pkg_check_modules(FMT fmt)
message(STATUS "FMT_VERSION: ${FMT_VERSION}")
if (${FMT_VERSION} VERSION_GREATER_EQUAL "10.0.0")
if (${FMT_LIBRARIES} STREQUAL "fmt")
set(FMT_LIBRARIES fmt::fmt)
endif()
endif()
message(STATUS "FMT_LIBRARY_DIRS = ${FMT_LIBRARY_DIRS}")
message(STATUS "FMT_LIBRARIES = ${FMT_LIBRARIES}")

find_package(spdlog REQUIRED)
set(SPDLOG_LIB spdlog::spdlog)
Expand Down Expand Up @@ -66,6 +63,7 @@ set_target_properties(oculus_driver PROPERTIES
INSTALL_RPATH_USE_LINK_PATH True
)
target_include_directories(oculus_driver PUBLIC ${EXT_LIB_DIRS})
target_link_directories(oculus_driver PUBLIC ${EXT_LIB_DIRS})
target_link_libraries(oculus_driver PUBLIC ${EXT_LIBS})
target_compile_features(oculus_driver PUBLIC cxx_std_17)
target_compile_definitions(oculus_driver PUBLIC MAGIC_ENUM_RANGE_MAX=1024)
Expand Down

0 comments on commit d9fb8d9

Please sign in to comment.