Do not touch CMAKE_MODULE_PATH

Now that the library does not provide any CMake find-modules, it is useless to alter the global.
Besides, the only way for a higher level integrating project to provide its own dependency resolution mechanism (Conan, local source tree, etc)relies on appending to CMAKE_MODULE_PATH prior to locating packages. Sdl2pp overriding the variable breaks this mechanism and therefore can only locate a globally installed copy of SDL, which is often inconvenient or plain impossible.
This commit is contained in:
xzxzzxzxzca 2023-12-09 22:07:48 +01:00 committed by GitHub
parent 01ba3ddfba
commit f9bfc75203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
# meta
project(libSDL2pp LANGUAGES CXX VERSION 0.18.1)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)