diff options
author | Dimitri Staessens <[email protected]> | 2024-07-29 23:35:46 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2024-08-02 09:31:31 +0200 |
commit | ff197dd32d6e6eeca3b9ad7442fe7771dc94fd69 (patch) | |
tree | 60e3f38c8be7f38131dabe77ecb6cce4c3839747 /src/irmd | |
parent | bbe6b76e391b52fcafe93220c628e45a0284da41 (diff) | |
download | ouroboros-be.tar.gz ouroboros-be.zip |
build: Add target include directory for libtomlc99be
On OS X, user-installed libraries will have their headers in
/usr/local/include/ which is not automatically included.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irmd/CMakeLists.txt b/src/irmd/CMakeLists.txt index c9c2e553..c7e4cbd9 100644 --- a/src/irmd/CMakeLists.txt +++ b/src/irmd/CMakeLists.txt @@ -24,6 +24,7 @@ if (LIBTOML_LIBRARIES) DESTINATION "${OUROBOROS_CONFIG_DIR}") unset(INSTALL_DIR) mark_as_advanced(LIBTOML_LIBRARIES) + find_path(LIBTOML_INCLUDE toml.h) else () message(STATUS "Configuration file support disabled by user") unset(OUROBOROS_CONFIG_FILE CACHE) @@ -83,6 +84,10 @@ add_executable (irmd ${SOURCE_FILES}) target_link_libraries (irmd LINK_PUBLIC ouroboros-common ${LIBTOML_LIBRARIES}) +if (HAVE_TOML) + target_include_directories(irmd PUBLIC ${LIBTOML_INCLUDE}) +endif () + include(AddCompileFlags) if (CMAKE_BUILD_TYPE MATCHES "Debug*") add_compile_flags(irmd -DCONFIG_OUROBOROS_DEBUG) |