summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-08-17 18:48:15 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-08-21 11:36:26 (GMT)
commit32a572564a94380a543593f9568d34fc2c4a8b70 (patch)
tree9569f8185f0e2f19711db38e127b0d26f2d1e28b /Source/QtDialog
parent0b6625c605b95ef7e936717e946906d422d3d4f7 (diff)
downloadCMake-32a572564a94380a543593f9568d34fc2c4a8b70.zip
CMake-32a572564a94380a543593f9568d34fc2c4a8b70.tar.gz
CMake-32a572564a94380a543593f9568d34fc2c4a8b70.tar.bz2
Remove an if which is always true.
CMake based CMake build requires version 2.8.2 as of version 2.8.9.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt
index 625e6d1..1eaa8dc 100644
--- a/Source/QtDialog/CMakeLists.txt
+++ b/Source/QtDialog/CMakeLists.txt
@@ -71,14 +71,13 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS})
target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES})
-if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.4)
- if(APPLE)
- set_target_properties(cmake-gui PROPERTIES
- OUTPUT_NAME ${CMAKE_BUNDLE_NAME})
- endif()
- set(CMAKE_INSTALL_DESTINATION_ARGS
- BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}")
+
+if(APPLE)
+ set_target_properties(cmake-gui PROPERTIES
+ OUTPUT_NAME ${CMAKE_BUNDLE_NAME})
endif()
+set(CMAKE_INSTALL_DESTINATION_ARGS
+ BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}")
install(TARGETS cmake-gui RUNTIME DESTINATION bin ${CMAKE_INSTALL_DESTINATION_ARGS})