about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoman Gershman <romange@gmail.com>2018-01-29T21·30+0200
committerRoman Gershman <romange@gmail.com>2018-01-29T21·30+0200
commitcc23e7554a1e312c33248df1599f6835c0170d4c (patch)
tree112306b19c11f1b03fc0c13e15f96260fd70918d
parent1c8ace4e513bce6fbb045fad716b960bea700926 (diff)
Move ABSL_EXCEPTIONS_FLAG define
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5a1d7792e0f..142898c294d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,9 @@ list(APPEND ABSL_COMMON_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
 set(CMAKE_CXX_FLAGS "${ABSL_STD_CXX_FLAG} ${CMAKE_CXX_FLAGS}")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_WARNING_VLA} ${CMAKE_CXX_FLAGS} ")
 
+# -fexceptions
+set(ABSL_EXCEPTIONS_FLAG "${CMAKE_CXX_EXCEPTIONS}")
+
 # find dependencies
 ## pthread
 find_package(Threads REQUIRED)
@@ -77,9 +80,6 @@ if(BUILD_TESTING)
   check_target(gtest_main)
   check_target(gmock)
 
-  # -fexceptions
-  set(ABSL_EXCEPTIONS_FLAG "${CMAKE_CXX_EXCEPTIONS}")
-
   list(APPEND ABSL_TEST_COMMON_LIBRARIES
     gtest_main
     gtest