Skip to content

Commit e678586

Browse files
Merge pull request #35 from marcfir/master
fix: add HAVE_CONFIG_H to cmake
2 parents 09100de + 2bd5741 commit e678586

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_config.h.in ${CMAKE_CURRE
143143
# LIBS
144144
add_library(ethercat ${SRC_ETHERCAT} ${SRC_HW_LAYER})
145145
target_link_libraries (ethercat ${CMAKE_THREAD_LIBS_INIT} ${libosal_LIBS})
146+
target_compile_definitions(ethercat PUBLIC HAVE_CONFIG_H=1)
146147

147148
# TOOLS
148149
add_executable(eepromtool tools/eepromtool/eepromtool.c)

0 commit comments

Comments
 (0)