Commit b71547a3 authored by louiz’'s avatar louiz’

Fix the build system to correctly include config.h

parent d1c6d645
...@@ -21,6 +21,8 @@ include(FindEXPAT) ...@@ -21,6 +21,8 @@ include(FindEXPAT)
find_package(EXPAT REQUIRED) find_package(EXPAT REQUIRED)
find_package(Libidn) find_package(Libidn)
# To be able to include the config.h file generated by cmake
include_directories("src/") include_directories("src/")
include_directories(${EXPAT_INCLUDE_DIRS}) include_directories(${EXPAT_INCLUDE_DIRS})
include_directories(${ICONV_INCLUDE_DIRS}) include_directories(${ICONV_INCLUDE_DIRS})
...@@ -123,4 +125,4 @@ target_link_libraries(test ...@@ -123,4 +125,4 @@ target_link_libraries(test
config config
logger) logger)
configure_file(config.h.cmake src/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment