aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2018-08-07 11:20:25 +0200
committerMichael Buesch <m@bues.ch>2018-08-07 11:20:25 +0200
commit7143567421453ed542d9f6c31050c606d90b1cf3 (patch)
tree759d7538806b9dcb188780abb4528e7560d36e2e
parent86c30dc4fd38722f65f6e06fa024a372933badae (diff)
downloadrazer-7143567421453ed542d9f6c31050c606d90b1cf3.tar.xz
razer-7143567421453ed542d9f6c31050c606d90b1cf3.zip
cmake: Remove CMP0005 OLD
This was only used by obsolete libusb-0.1 definitions. Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--CMakeLists.txt4
-rw-r--r--librazer/CMakeLists.txt2
2 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 142690f..c4cba3b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,8 +5,8 @@ cmake_minimum_required(VERSION 2.4)
if (COMMAND cmake_policy)
# Libraries linked via full path no longer produce linker search paths.
cmake_policy(SET CMP0003 NEW)
- # Preprocessor definition values are not escaped automatically.
- cmake_policy(SET CMP0005 OLD)
+ # Preprocessor definition values shall be escaped automatically.
+ cmake_policy(SET CMP0005 NEW)
endif (COMMAND cmake_policy)
include("${razer_SOURCE_DIR}/scripts/cmake.global")
diff --git a/librazer/CMakeLists.txt b/librazer/CMakeLists.txt
index acc25b8..600e898 100644
--- a/librazer/CMakeLists.txt
+++ b/librazer/CMakeLists.txt
@@ -32,8 +32,6 @@ add_library(razer ${SHARED_OR_STATIC}
set_target_properties(razer PROPERTIES COMPILE_FLAGS ${GENERIC_COMPILE_FLAGS}
SOVERSION 1)
-add_definitions("-Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t")
-
target_link_libraries(razer usb-1.0)
install(TARGETS razer DESTINATION lib)
bues.ch cgit interface