javascript: dont't wipe other cxx flags
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
0a1cf1af3b
commit
181ba35f4d
@@ -12,7 +12,6 @@ include_directories (
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
)
|
||||
|
||||
set (CMAKE_CXX_FLAGS -DBUILDING_NODE_EXTENSION)
|
||||
# SWIG treats SWIG_FLAGS as a list and not a string so semicolon seperation is required
|
||||
set_source_files_properties (mraajs.i PROPERTIES SWIG_FLAGS "-node;-I${CMAKE_BINARY_DIR}/src")
|
||||
set_source_files_properties (mraajs.i PROPERTIES CPLUSPLUS ON)
|
||||
@@ -27,6 +26,7 @@ if (DOXYGEN_FOUND)
|
||||
endif ()
|
||||
|
||||
set_target_properties (mraajs PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -DBUILDING_NODE_EXTENSION"
|
||||
PREFIX ""
|
||||
OUTPUT_NAME mraa
|
||||
SUFFIX ".node"
|
||||
|
||||
Reference in New Issue
Block a user