You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
target_link_libraries(${PROJECT_NAME} mos)
target_include_directories(${PROJECT_NAME} PUBLIC externals/mos/include)
The 2nd line should not be required if mos had setup its include dirs. Use target_include_directories and PUBLIC/PRIVATE/INTERFACE for all target_* functions. See "Effective CMake" by Daniel Pfeiffer,
The text was updated successfully, but these errors were encountered:
Related: Is (e.g.) glm a public dependency or is it only used internally?
There is add_definitions(-DGLM_FORCE_RADIANS) at the top, if glm is public you should use target_compile_definitions(target PUBLIC ...) if not use PRIVATE and make the include directory PRIVATE too. Similar for others in target_include_directories: Decide and define what is only internally used and what is included in the external interface. -DMOS_EFX can also be a PRIVATE in target_compile_definitions
Just from your Readme:
The 2nd line should not be required if
mos
had setup its include dirs. Usetarget_include_directories
andPUBLIC/PRIVATE/INTERFACE
for alltarget_*
functions. See "Effective CMake" by Daniel Pfeiffer,The text was updated successfully, but these errors were encountered: