[uchardet: 23/29] cmake: keep compiler definitions in one place
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [uchardet: 23/29] cmake: keep compiler definitions in one place
- Date: Sun, 27 Mar 2016 18:38:22 +0000 (UTC)
commit ad647d2e0aad05e979315899a4a4ac6d9b1d6158
Author: Ilya Tumaykin <itumaykin gmail com>
Date: Mon Mar 21 21:45:47 2016 +0300
cmake: keep compiler definitions in one place
src/CMakeLists.txt | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f6be76f..1678a1e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -54,6 +54,13 @@ add_definitions(
-Wall
)
+if (CMAKE_BUILD_TYPE MATCHES Debug)
+ add_definitions(
+ -O0
+ -g3
+ )
+endif (CMAKE_BUILD_TYPE MATCHES Debug)
+
add_library(
${UCHARDET_LIBRARY}
${UCHARDET_SOURCES}
@@ -91,13 +98,6 @@ if (UCHARDET_STATIC_LIBRARY)
)
endif (UCHARDET_STATIC_LIBRARY)
-if (CMAKE_BUILD_TYPE MATCHES Debug)
- add_definitions(
- -O0
- -g3
- )
-endif (CMAKE_BUILD_TYPE MATCHES Debug)
-
if (NOT WIN32)
install(
TARGETS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]