summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL_sound.cmake
diff options
context:
space:
mode:
authorBenjamin Eikel <cmake@eikel.org>2012-09-04 13:43:07 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 17:51:34 (GMT)
commita5194e2ffb134b420c3d386b14d5c8031376dd47 (patch)
tree3c7acf24a21e96259510566afd7d404e3592cfce /Modules/FindSDL_sound.cmake
parent2c3b8255c53d05c3cc8a9beb9f82072eda41e7e6 (diff)
downloadCMake-a5194e2ffb134b420c3d386b14d5c8031376dd47.zip
CMake-a5194e2ffb134b420c3d386b14d5c8031376dd47.tar.gz
CMake-a5194e2ffb134b420c3d386b14d5c8031376dd47.tar.bz2
FindSDL: Add "cmake_minimum_required" to "try_compile" project
Diffstat (limited to 'Modules/FindSDL_sound.cmake')
-rw-r--r--Modules/FindSDL_sound.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindSDL_sound.cmake b/Modules/FindSDL_sound.cmake
index a9153c1..0c43e5c 100644
--- a/Modules/FindSDL_sound.cmake
+++ b/Modules/FindSDL_sound.cmake
@@ -176,7 +176,8 @@ if(SDL_FOUND AND SDL_SOUND_INCLUDE_DIR AND SDL_SOUND_LIBRARY)
# in the SDL_LIBRARY string after the "-framework".
# But if I quote the stuff in INCLUDE_DIRECTORIES, it doesn't work.
file(WRITE ${PROJECT_BINARY_DIR}/CMakeTmp/CMakeLists.txt
- "project(DetermineSoundLibs)
+ "cmake_minimum_required(VERSION 2.8)
+ project(DetermineSoundLibs)
include_directories(${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR})
add_executable(DetermineSoundLibs DetermineSoundLibs.c)
target_link_libraries(DetermineSoundLibs ${TMP_TRY_LIBS})"