Skip to content

Commit 3834798

Browse files
committed
DOC: Update readme and fmt cmake
1 parent 71915c7 commit 3834798

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ Now the installation can proceed.
7979
```bash
8080
mkdir build
8181
cd build
82+
export EIGEN3_INCLUDE_DIR=$CONDA_PREFIX/include/eigen3
8283
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=YES -DCMAKE_INSTALL_PREFIX:PATH=$CONDA_PREFIX ../
8384
make -j$(nproc)
8485
make install
85-
$CONDA_PREFIX/bin/yodaStruct -c lua_inputs/config.yml
86+
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib $CONDA_PREFIX/bin/yodaStruct -c lua_inputs/config.yml
8687
```
8788

8889
We have opted to install into the `conda` environment, if this is not the

src/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
4343
find_package(
4444
"Lua" REQUIRED
4545
"Boost" REQUIRED COMPONENTS system filesystem
46-
"yaml-cpp"
47-
"fmt")
46+
"yaml-cpp")
47+
48+
find_package(fmt REQUIRED)
4849

4950
link_directories(${Boost_LIBRARY_DIRS})
5051
# Link everything
@@ -53,7 +54,7 @@ target_link_libraries(
5354
${Boost_LIBRARIES}
5455
Eigen3::Eigen
5556
${LUA_LIBRARIES}
56-
fmt
57+
fmt::fmt
5758
yaml-cpp
5859
yodaLib
5960
)

0 commit comments

Comments
 (0)