Use set_property instead of set_source_files_properties
since it allows to append which is what should actually happen
This commit is contained in:
parent
71f41e4871
commit
4ca32e14dc
|
@ -158,16 +158,16 @@ if(USE_NATIVE_FILE_BUFFER)
|
||||||
# use __gnu_cxx::stdio_filebuf if available or fallback to boost::iostreams::stream_buffer
|
# use __gnu_cxx::stdio_filebuf if available or fallback to boost::iostreams::stream_buffer
|
||||||
if(GNU_CXX_STDIO_FILEBUF_AVAILABLE AND NOT FORCE_BOOST_IOSTREAMS_FOR_NATIVE_FILE_BUFFER)
|
if(GNU_CXX_STDIO_FILEBUF_AVAILABLE AND NOT FORCE_BOOST_IOSTREAMS_FOR_NATIVE_FILE_BUFFER)
|
||||||
message(STATUS "Using __gnu_cxx::stdio_filebuf for NativeFileStream")
|
message(STATUS "Using __gnu_cxx::stdio_filebuf for NativeFileStream")
|
||||||
set_source_files_properties(
|
set_property(
|
||||||
io/nativefilestream.cpp
|
SOURCE io/nativefilestream.cpp
|
||||||
PROPERTIES COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_USE_GNU_CXX_STDIO_FILEBUF
|
APPEND PROPERTY COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_USE_GNU_CXX_STDIO_FILEBUF
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Using boost::iostreams::stream_buffer<boost::iostreams::file_descriptor_sink> for NativeFileStream")
|
message(STATUS "Using boost::iostreams::stream_buffer<boost::iostreams::file_descriptor_sink> for NativeFileStream")
|
||||||
use_external_library(boost_iostreams AUTO_LINKAGE REQUIRED)
|
use_external_library(boost_iostreams AUTO_LINKAGE REQUIRED)
|
||||||
set_source_files_properties(
|
set_property(
|
||||||
io/nativefilestream.cpp
|
SOURCE io/nativefilestream.cpp
|
||||||
PROPERTIES COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_USE_BOOST_IOSTREAMS
|
APPEND PROPERTY COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_USE_BOOST_IOSTREAMS
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
@ -183,11 +183,11 @@ endif()
|
||||||
# configure whether escape codes should be enabled by default
|
# configure whether escape codes should be enabled by default
|
||||||
option(ENABLE_ESCAPE_CODES_BY_DEAULT "enables usage of escape codes by default" ON)
|
option(ENABLE_ESCAPE_CODES_BY_DEAULT "enables usage of escape codes by default" ON)
|
||||||
if(ENABLE_ESCAPE_CODES_BY_DEAULT)
|
if(ENABLE_ESCAPE_CODES_BY_DEAULT)
|
||||||
set_source_files_properties(
|
set_property(
|
||||||
application/argumentparser.cpp
|
SOURCE application/argumentparser.cpp
|
||||||
io/ansiescapecodes.cpp
|
io/ansiescapecodes.cpp
|
||||||
tests/argumentparsertests.cpp
|
tests/argumentparsertests.cpp
|
||||||
PROPERTIES COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_ESCAPE_CODES_ENABLED_BY_DEFAULT
|
APPEND PROPERTY COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_ESCAPE_CODES_ENABLED_BY_DEFAULT
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Disabling use of escape codes by default.")
|
message(STATUS "Disabling use of escape codes by default.")
|
||||||
|
@ -196,9 +196,9 @@ endif()
|
||||||
# configure use of thread_local
|
# configure use of thread_local
|
||||||
option(ENABLE_THREAD_LOCAL "enables use of Thread-Local Storage" ON)
|
option(ENABLE_THREAD_LOCAL "enables use of Thread-Local Storage" ON)
|
||||||
if(NOT ENABLE_THREAD_LOCAL)
|
if(NOT ENABLE_THREAD_LOCAL)
|
||||||
set_source_files_properties(
|
set_property(
|
||||||
conversion/stringconversion.cpp
|
SOURCE conversion/stringconversion.cpp
|
||||||
PROPERTIES COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_NO_THREAD_LOCAL
|
APPEND PROPERTY COMPILE_DEFINITIONS ${META_PROJECT_VARNAME}_NO_THREAD_LOCAL
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue