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-21 12:44:06 +0800 |
commit | e22d340a341208e71bd9c35e9f6590470e5402be (patch) | |
tree | 05aed0dfbd6841b4b3dbdd211f81274f93a23863 | |
parent | f8ec2f4b4f7ef66ec5d8d53fa987e3795d00963e (diff) | |
download | beignet-e22d340a341208e71bd9c35e9f6590470e5402be.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>
-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 c5020363..4d717587 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") |