Moved add_definitions in cmake files to /src/ so that all components and tests use the same definitions when compiling sources
Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
This commit is contained in:
parent
b3c5a8d4fc
commit
323de40cba
6 changed files with 44 additions and 46 deletions
|
@ -11,12 +11,11 @@
|
|||
#
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
|
||||
if( ENABLE_SECURITY )
|
||||
add_definitions(-DDDSI_INCLUDE_SECURITY)
|
||||
add_subdirectory(api)
|
||||
add_subdirectory(core)
|
||||
if(ENABLE_SECURITY)
|
||||
add_subdirectory(api)
|
||||
add_subdirectory(core)
|
||||
|
||||
if ( ENABLE_SSL)
|
||||
if(ENABLE_SSL)
|
||||
add_subdirectory(builtin_plugins)
|
||||
endif()
|
||||
endif()
|
|
@ -11,8 +11,6 @@
|
|||
#
|
||||
include (GenerateExportHeader)
|
||||
|
||||
find_package(OpenSSL)
|
||||
|
||||
PREPEND(srcs_accesscontrol "${CMAKE_CURRENT_LIST_DIR}/src"
|
||||
access_control_objects.c
|
||||
access_control_parser.c
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#
|
||||
include (GenerateExportHeader)
|
||||
|
||||
find_package(OpenSSL)
|
||||
|
||||
PREPEND(srcs_cryptographic "${CMAKE_CURRENT_LIST_DIR}/src"
|
||||
crypto_cipher.c
|
||||
crypto_key_exchange
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
|
||||
#
|
||||
include(CUnit)
|
||||
find_package(OpenSSL)
|
||||
|
||||
set(security_auth_test_sources
|
||||
"common/src/loader.c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue