summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2024-07-29 23:35:46 +0200
committerSander Vrijders <sander@ouroboros.rocks>2024-08-02 09:31:31 +0200
commitff197dd32d6e6eeca3b9ad7442fe7771dc94fd69 (patch)
tree60e3f38c8be7f38131dabe77ecb6cce4c3839747 /src/irmd
parentbbe6b76e391b52fcafe93220c628e45a0284da41 (diff)
downloadouroboros-ff197dd32d6e6eeca3b9ad7442fe7771dc94fd69.tar.gz
ouroboros-ff197dd32d6e6eeca3b9ad7442fe7771dc94fd69.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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/CMakeLists.txt5
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)