Skip to content

Commit

Permalink
Changed to bash for due to weird color
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival2 committed May 7, 2023
1 parent 0863055 commit 5bf831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/gtest-undefined-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ target_link_libraries(${project_name} PUBLIC fmt::fmt GTest::gtest GTest::gtest_
### Compiling *gtest* with proper flags
When you provide `-DBUILD_SHARED_LIBS=ON` option while running CMake, it specifies that you want to build the project as a shared library. This means that the code will be compiled into a shared object file (.so) that can be dynamically linked by other programs at runtime.
So the above problem can also be solved by providing the `-DBUILD_SHARED_LIBS` while doing *cmake*
```cmake
```bash
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
Expand Down

0 comments on commit 5bf831c

Please sign in to comment.