@@ -15,7 +15,7 @@ function(_opendds_get_sources_and_options
15
15
non_idl_prefix
16
16
tao_options
17
17
opendds_options
18
- existing_export
18
+ use_export
19
19
use_versioned_namespace
20
20
suppress_anys
21
21
export_header_dir
@@ -40,7 +40,7 @@ function(_opendds_get_sources_and_options
40
40
set (multi_value_options
41
41
PUBLIC PRIVATE INTERFACE
42
42
TAO_IDL_OPTIONS OPENDDS_IDL_OPTIONS
43
- EXISTING_EXPORT
43
+ USE_EXPORT
44
44
USE_VERSIONED_NAMESPACE
45
45
)
46
46
cmake_parse_arguments (arg
@@ -77,14 +77,14 @@ function(_opendds_get_sources_and_options
77
77
endif ()
78
78
set (${suppress_anys} ${arg_SUPPRESS_ANYS} PARENT_SCOPE )
79
79
80
- if (arg_EXISTING_EXPORT )
81
- list (LENGTH arg_EXISTING_EXPORT existing_export_len )
82
- if (NOT existing_export_len EQUAL 2 )
80
+ if (arg_USE_EXPORT )
81
+ list (LENGTH arg_USE_EXPORT use_export_len )
82
+ if (NOT use_export_len EQUAL 2 )
83
83
message (FATAL_ERROR
84
- "The opendds_target_sources EXISTING_EXPORT option takes a header path and macro name, "
85
- "but was passed ${existing_export_len } values" )
84
+ "The opendds_target_sources USE_EXPORT option takes a header path and macro name, "
85
+ "but was passed ${use_export_len } values" )
86
86
endif ()
87
- set (${existing_export } "${arg_EXISTING_EXPORT } " PARENT_SCOPE )
87
+ set (${use_export } "${arg_USE_EXPORT } " PARENT_SCOPE )
88
88
else ()
89
89
if (NOT DEFINED arg_ALWAYS_GENERATE_LIB_EXPORT_HEADER )
90
90
set (arg_ALWAYS_GENERATE_LIB_EXPORT_HEADER ${OPENDDS_ALWAYS_GENERATE_LIB_EXPORT_HEADER} )
@@ -213,7 +213,7 @@ function(opendds_target_sources target)
213
213
non_idl_sources
214
214
tao_options
215
215
opendds_options
216
- existing_export
216
+ use_export
217
217
use_versioned_namespace
218
218
suppress_anys
219
219
export_header_dir
@@ -246,15 +246,14 @@ function(opendds_target_sources target)
246
246
endif ()
247
247
248
248
get_target_property (target_type ${target} TYPE )
249
- if (NOT existing_export )
249
+ if (NOT use_export )
250
250
if ((target_type STREQUAL "SHARED_LIBRARY" AND max_scope STREQUAL "PUBLIC" )
251
251
OR (target_type MATCHES "LIBRARY" AND always_generate_lib_export_header ))
252
252
opendds_export_header (${target} USE_EXPORT_VAR use_export DIR "${export_header_dir} " )
253
253
endif ()
254
254
else ()
255
- set (use_export "${existing_export} " )
256
255
# Assuming the custom export header is compatible with ones generated by generate_export_file.pl
257
- list (GET existing_export 1 existing_macro )
256
+ list (GET use_export 1 existing_macro )
258
257
string (FIND ${existing_macro} "_Export" index )
259
258
string (SUBSTRING ${existing_macro} 0 ${index} macro_prefix )
260
259
string (TOUPPER ${macro_prefix} macro_prefix )
0 commit comments