Revert koda's c24fdd9a0458 until it stops breaking my builds :-p
authornemo
Tue, 20 Sep 2011 13:37:52 -0400
changeset 5973 94abd65e7d4f
parent 5972 add1cae1add6
child 5974 5bd84514856f
Revert koda's c24fdd9a0458 until it stops breaking my builds :-p
QTfrontend/CMakeLists.txt
hedgewars/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt	Tue Sep 20 13:27:07 2011 -0400
+++ b/QTfrontend/CMakeLists.txt	Tue Sep 20 13:37:52 2011 -0400
@@ -1,6 +1,5 @@
 # Configure for Qt4
 set(QT_MIN_VERSION "4.5.0")
-include(CheckLibraryExists)
 
 set(QT_USE_QTCORE TRUE)
 set(QT_USE_QTGUI TRUE)
--- a/hedgewars/CMakeLists.txt	Tue Sep 20 13:27:07 2011 -0400
+++ b/hedgewars/CMakeLists.txt	Tue Sep 20 13:37:52 2011 -0400
@@ -152,9 +152,6 @@
         MAIN_DEPENDENCY ${hwengine_project}
         DEPENDS ${engine_sources}
         )
-
-    add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
-    add_dependencies(${engine_output_name} ENGINECLEAN)
 ELSE()
     #let's build sdlmain, which is absent from the framework
     find_package(SDL REQUIRED)
@@ -186,6 +183,8 @@
 
 
 add_custom_target(${engine_output_name} ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}")
+add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
+add_dependencies(${engine_output_name} ENGINECLEAN)
 
 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})