From e2abcc623f2c12caee4a3e9a1f6ebb500ae81f60 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 May 2017 03:29:31 +0200 Subject: cleanup --- cmake/opentrack-platform.cmake | 1 - cmake/opentrack-version.cmake | 13 +++++++------ csv/csv.h | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 3e0319ac..27d38d88 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -49,7 +49,6 @@ if(MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Zi") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Zi") endif() - #set(CMAKE_C_FLAGS " -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS ${CMAKE_C_FLAGS}") foreach (i SHARED MODULE EXE) set(CMAKE_${i}_LINKER_FLAGS "${CMAKE_${i}_LINKER_FLAGS} -DYNAMICBASE -NXCOMPAT") diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake index 00a5df1d..181fc613 100644 --- a/cmake/opentrack-version.cmake +++ b/cmake/opentrack-version.cmake @@ -29,17 +29,18 @@ const char* opentrack_version; const char* opentrack_version = \"${OPENTRACK_COMMIT}${_build_type}\"; ") +set(file "${CMAKE_CURRENT_BINARY_DIR}/version.cpp") set(crapola-ver) -if(EXISTS ${CMAKE_BINARY_DIR}/version.c) - file(READ ${CMAKE_BINARY_DIR}/version.c crapola-ver) +if(EXISTS "${file}") + file(READ "${file}" crapola-ver) endif() if(NOT (crapola-ver STREQUAL version-string)) - file(WRITE ${CMAKE_BINARY_DIR}/version.c "${version-string}") + file(WRITE "${file}" "${version-string}") endif() -add_library(opentrack-version STATIC ${CMAKE_BINARY_DIR}/version.c) +add_library(opentrack-version STATIC "${file}") + if(NOT MSVC) - set_property(TARGET opentrack-version APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-lto") + otr_prop(TARGET opentrack-version COMPILE_FLAGS "-fno-lto") endif() -otr_compat(opentrack-version) diff --git a/csv/csv.h b/csv/csv.h index e88a10b2..b8c40e27 100644 --- a/csv/csv.h +++ b/csv/csv.h @@ -15,7 +15,6 @@ public: QString readLine(); bool parseLine(QStringList& ret); - void setCodec(const char* codecName); static bool getGameData(int gameID, unsigned char* table, QString& gamename); private: CSV(QIODevice* device); -- cgit v1.2.3