Skip to content

Commit

Permalink
Changed: Make sure to include gaia.h from multiple source units to ca…
Browse files Browse the repository at this point in the history
…tch issues with symbols redefined
  • Loading branch information
richardbiely committed Feb 21, 2024
1 parent 18d55d7 commit 69d7ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/examples/example2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(PROJ_NAME "gaia_example2")
add_executable(${PROJ_NAME} src/main.cpp)
add_executable(${PROJ_NAME} src/main.cpp src/dummy.cpp)

target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include)

Expand Down
3 changes: 3 additions & 0 deletions src/examples/example2/src/dummy.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include <gaia.h>

// Example source file also including gaia.h

0 comments on commit 69d7ea1

Please sign in to comment.