Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_core
Commits
df785acc
Commit
df785acc
authored
1 year ago
by
Olivier BICHLER
Browse files
Options
Downloads
Patches
Plain Diff
Proper way of handling fmt dependency
parent
868812fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!105
version 0.2.0
,
!77
Support for recurrent networks
Pipeline
#39481
passed
1 year ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
aidge_core-config.cmake.in
+2
-8
2 additions, 8 deletions
aidge_core-config.cmake.in
with
4 additions
and
9 deletions
CMakeLists.txt
+
2
−
1
View file @
df785acc
...
...
@@ -40,6 +40,7 @@ FetchContent_Declare(
set
(
FMT_SYSTEM_HEADERS ON
)
FetchContent_MakeAvailable
(
fmt
)
set_property
(
TARGET fmt PROPERTY POSITION_INDEPENDENT_CODE ON
)
##############################################
# Create target and set properties
...
...
@@ -72,7 +73,7 @@ if (PYBIND)
)
endif
()
target_link_libraries
(
${
module_name
}
PUBLIC fmt::fmt
-header-only
)
target_link_libraries
(
${
module_name
}
PUBLIC fmt::fmt
)
target_compile_features
(
${
module_name
}
PRIVATE cxx_std_14
)
if
(
DOSANITIZE STREQUAL
"ON"
)
...
...
This diff is collapsed.
Click to expand it.
aidge_core-config.cmake.in
+
2
−
8
View file @
df785acc
@PACKAGE_INIT@
Include(FetchContent)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 10.2.1 # or a later release
)
FetchContent_MakeAvailable(fmt)
include(CMakeFindDependencyMacro)
find_dependency(fmt)
include(${CMAKE_CURRENT_LIST_DIR}/aidge_core-config-version.cmake)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment