[cmake,sdl] use option instead of set

This commit is contained in:
akallabeth 2023-05-23 08:24:41 +02:00 committed by Martin Fleisz
parent 27d0da9df0
commit 2ec4601669
1 changed files with 3 additions and 2 deletions

View File

@ -23,8 +23,9 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON)
option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON)
option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON)
list(APPEND CMAKE_MODULE_PATH ../../cmake/)
include(GNUInstallDirsWrapper)