diff options
author | Rebecca N. Palmer <rebecca_palmer@zoho.com> | 2016-10-08 14:28:00 +0100 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-10-20 13:29:30 +0800 |
commit | d2c531299fd6c0a88f7b7b5798205018ab1f7cdf (patch) | |
tree | 5c4156e9da1593c19d0a5c3546eee80ca1a2a9d3 /utests/CMakeLists.txt | |
parent | bba70eb5fc4e954d7ce2d2aefa7c31f83d802cf0 (diff) | |
download | beignet-d2c531299fd6c0a88f7b7b5798205018ab1f7cdf.tar.gz |
Utests: respect existing C/CXXFLAGS
This extends 4be3664 to the test suite.
Signed-off-by: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/CMakeLists.txt')
-rw-r--r-- | utests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt index f94256c6..6a903284 100644 --- a/utests/CMakeLists.txt +++ b/utests/CMakeLists.txt @@ -26,8 +26,8 @@ if (NOT NOT_BUILD_STAND_ALONE_UTEST) # Threads Find_Package(Threads) - set (CMAKE_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -std=c++0x -Wno-invalid-offsetof") - set (CMAKE_C_FLAGS "${CMAKE_C_CXX_FLAGS}") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_CXX_FLAGS} -std=c++0x -Wno-invalid-offsetof") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_CXX_FLAGS}") set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DGBE_DEBUG=1") set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1") set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0") |