module for adding preprocessor definitions; fixes #103
This commit is contained in:
parent
c41c10bf9c
commit
e20dc5d862
16
modules/definitions.cmake
Normal file
16
modules/definitions.cmake
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#.rst:
|
||||||
|
#
|
||||||
|
# Add preprocessor definitions.
|
||||||
|
#
|
||||||
|
# Variables used::
|
||||||
|
#
|
||||||
|
# PREPROCESSOR_DEFINITIONS
|
||||||
|
#
|
||||||
|
# autocmake.cfg configuration::
|
||||||
|
#
|
||||||
|
# docopt: --add-definitions=<STRING> Add preprocesor definitions [default: ''].
|
||||||
|
# define: '-DPREPROCESSOR_DEFINITIONS="%s"' % arguments['--add-definitions']
|
||||||
|
|
||||||
|
if(NOT "${PREPROCESSOR_DEFINITIONS}" STREQUAL "")
|
||||||
|
add_definitions(${PREPROCESSOR_DEFINITIONS})
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user