Commit graph

13 commits

Author SHA1 Message Date
Timo Kreuzer 18837f1e33 [0.4.11] [CMAKE] Fix problem with __RELFILE__ not working when
compiler uses relative paths

done in context of CORE-14839 (2 of 2 commits)

This usually happens when the build dir is a subdir of the source dir.
It is now detected during runtime, using the length of the relative path
from the build dir to the source dir as the length of the prefix to skip,
if __FILE__ starts with a '.'.
Also fix the escaping of REACTOS_*_DIR defines. It was gracefully fixed up by
CMake, but resulted in broken syntax highliting.

CORE-14839 #resolve

cherry picked from commit 0.4.12-dev-29-g
3de04ccace
2018-12-11 22:16:37 +01:00
Timo Kreuzer 7cd586252f [0.4.11] Revert "[CMAKE] Use configured include files to define the
__RELFILE__ hack (#979)"

done in context of CORE-14839 (1 of 2 commits)

This reverts commit 0.4.11-dev-516-g
07bd6089ec.

cherry picked from commit 0.4.12-dev-28-g
05169a4987
2018-12-11 22:14:05 +01:00
Jérôme Gardou 07bd6089ec
[CMAKE] Use configured include files to define the __RELFILE__ hack (#979)
[CMAKE] Use configured include files to define the __RELFILE__ hack

It's easier on the command line and the eyes looking at it
2018-10-26 13:47:22 +02:00
Serge Gautherie afe5ecb6b7 [CMAKE] MSVC_IDE: Enable 'unset(CMAKE_IMPORT_LIBRARY_SUFFIX)'
Resolve r67773 "# FIXME: Remove the MSVC_IDE condition when the upcoming RosBE lands.".
2018-08-21 15:39:35 +02:00
Andrew Cook 8cd5c4e7bd CORE-14513 [CMAKE] Remove modules that are shipped with cmake (#575)
* Remove unused cmake modules - Both are unedited versions of modules provided by cmake itself
* Remove Compiler/GNU.cmake - Only chang was various _INIT flags, which are handled
via CMAKE_USER_MAKE_RULES_OVERRIDE instead
* Remove Platform/Windows.cmake - There's no clear explination for this file being in reactos
and is simply an old version of the one in cmake
* Remove Platform/Windows-MSVC.cmake - _INIT variable changes moved to overrides-msvc.cmake
Remove /implib from link commands
* Remove CMakeDetermineASMCompiler.cmake - Only change from 3.2 is the addition of a compiler list for the generic ASM dialect, but toolchain files explicitly set a compiler so the list is never used
2018-08-19 22:01:31 +02:00
Serge Gautherie 2ee150c374 [REACTOS] Warn if not using RosBE custom CMake
Better be explicit immediately, than fail later without a clue.

Thanks to Yuntian Zhang for initial code, adapted by me.

CORE-14607
2018-08-17 14:03:59 +02:00
Timo Kreuzer 79ad68ddc3 [CMAKE] Zap builddir.h.cmake and instead define macros globally
This changes __RELFILE__ to always be relative and not rely on a GCC extension, since __FILE__ is *always* relative to the root.
2018-06-30 13:26:56 +02:00
Thomas Faber e4f067068c
Set minimum required version to 3.2.1 and set appropriate policies.
#556
2018-06-14 22:34:09 +02:00
Thomas Faber 99ba355e7f
[CMAKE] Disallow use of LOCATION. CORE-14509 2018-03-30 20:28:27 +02:00
Thomas Faber d96609a439
[CMAKE] Remove some anachronisms. 2018-03-30 18:52:14 +02:00
Amine Khaldi 09c06a2f45 [CLANG-CL] Initial commit that allows us to compile ReactOS with clang-cl. 2017-11-23 14:09:57 +01:00
Timo Kreuzer c22817db06 [NDK] Improve NDK tests for KTHREAD and add them to build 2017-10-08 18:11:07 +02:00
Colin Finck c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
Renamed from reactos/CMakeLists.txt (Browse further)