add_library ( mod_auth_ia MODULE authorization/inetaccess/inetaccess.cpp )
target_link_libraries ( mod_auth_ia scriptexecuter crypto logger common )
set_target_properties ( mod_auth_ia PROPERTIES PREFIX "" )
+ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
+ set_target_properties ( mod_auth_ia PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" )
+ endif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
endif ( BUILD_MOD_IA )
if ( BUILD_MOD_CAP_NF )
configuration/sgconfig/parser_server_info.cpp )
target_link_libraries ( mod_conf_sg scriptexecuter crypto logger common EXPAT::EXPAT )
set_target_properties ( mod_conf_sg PROPERTIES PREFIX "" )
+ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
+ set_target_properties ( mod_conf_sg PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" )
+ endif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
endif ( BUILD_MOD_SGCONFIG )
if ( BUILD_MOD_RPCCONFIG )
add_library ( mod_remote_script MODULE other/rscript/rscript.cpp other/rscript/nrmap_parser.cpp )
target_link_libraries ( mod_remote_script crypto scriptexecuter logger common )
set_target_properties ( mod_remote_script PROPERTIES PREFIX "" )
+ if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
+ set_target_properties ( mod_remote_script PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" )
+ endif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" )
endif ( BUILD_MOD_RSCRYPT )
if ( BUILD_MOD_SMUX )
if ( BUILD_MOD_STORE_POSTGRESQL )
find_package ( PostgreSQL REQUIRED )
+ include_directories ( ${PostgreSQL_INCLUDE_DIRS} )
add_library ( mod_store_postgresql MODULE store/postgresql/postgresql_store.cpp
store/postgresql/postgresql_store_admins.cpp
store/postgresql/postgresql_store_corporations.cpp
store/postgresql/postgresql_store_tariffs.cpp
store/postgresql/postgresql_store_users.cpp
store/postgresql/postgresql_store_utils.cpp )
- target_link_libraries ( mod_store_postgresql crypto logger common PostgreSQL::PostgreSQL )
+ target_link_libraries ( mod_store_postgresql crypto logger common ${PostgreSQL_LIBRARIES} )
set_target_properties ( mod_store_postgresql PROPERTIES PREFIX "" )
endif ( BUILD_MOD_STORE_POSTGRESQL )