mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
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:
parent
01ba3ddfba
commit
f9bfc75203
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user