We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff7d60 commit f08ea56Copy full SHA for f08ea56
CMakeLists.txt
@@ -28,6 +28,9 @@ if(NOT TARGET fmt::fmt)
28
if(TARGET fmt)
29
add_library(fmt::fmt ALIAS fmt)
30
else()
31
+ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
32
+ set(FMT_INSTALL ON CACHE BOOL "" FORCE)
33
+ endif()
34
FetchContent_Declare(
35
fmtlib
36
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
@@ -74,7 +77,7 @@ else()
74
77
endif()
75
78
76
79
target_link_libraries(OpenDrive PUBLIC pugixml::pugixml)
-target_link_libraries(OpenDrive PRIVATE fmt::fmt)
80
+target_link_libraries(OpenDrive PUBLIC fmt::fmt)
81
82
target_include_directories(
83
OpenDrive PUBLIC
0 commit comments