Skip to content

Commit

Permalink
Have cmake also execute the conftests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed May 3, 2022
1 parent 0712c33 commit 16be133
Show file tree
Hide file tree
Showing 12 changed files with 333 additions and 226 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ uninstall.cmake
CMakeCache.txt
install_manifest.txt
out/**/*
CTestTestfile.cmake
DartConfiguration.tcl
Testing/*
doc/CTestTestfile.cmake
doc/design/CTestTestfile.cmake
doc/man/CTestTestfile.cmake
doc/manual/CTestTestfile.cmake
src/CTestTestfile.cmake
src/Testing/

# scons
.scons-option-cache
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cmake_minimum_required(VERSION 3.14)
project(wesnoth)

include(CheckCXXCompilerFlag)
include(CTest)

# use our own version of FindBoost.cmake and other Find* scripts
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
Expand Down
6 changes: 3 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ if env["prereqs"]:

def have_sdl_other():
return \
conf.CheckSDL(require_version = '2.0.8') & \
conf.CheckSDL("SDL2_mixer", header_file = "SDL_mixer") & \
conf.CheckSDL("SDL2_image", header_file = "SDL_image")
conf.CheckSDL2('2.0.8') & \
conf.CheckSDL2Mixer() & \
conf.CheckSDL2Image()

if sys.platform == "msys":
env["PKG_CONFIG_FLAGS"] = "--dont-define-prefix"
Expand Down

0 comments on commit 16be133

Please sign in to comment.