diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-02-05 15:58:35 -0400 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-05 17:54:00 -0200 |
commit | dac9954e97ab1054ace55ccff9b527f5f65c19d6 (patch) | |
tree | 369b84fe18739ad486de8c67bbf1b4a8d35e0888 /CMakeLists.txt | |
parent | c1d5619a6fdb47797fc7046a1cb83655e8595186 (diff) |
Simplify "else" and "endif" statements
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ede88128..42f308f64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-common -Wall -fno-strict-aliasing -fvisibilit if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) -endif (NOT CMAKE_BUILD_TYPE) +endif() find_package(PythonLibs REQUIRED) find_package(PythonInterp REQUIRED) @@ -26,19 +26,19 @@ set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The s if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) -endif (NOT CMAKE_BUILD_TYPE) +endif() include(${QT_USE_FILE}) if (${QTVERSION} VERSION_LESS 4.5.0) message(FATAL_ERROR "You need Qt4.5, found ${QTVERSION}.") -endif (${QTVERSION} VERSION_LESS 4.5.0) +endif() set(BINDING_VERSION ${BINDING_API_VERSION}.${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}) find_program(GENERATOR generatorrunner REQUIRED) if (NOT GENERATOR) message(FATAL_ERROR "You need to specify GENERATOR variable (-DGENERATOR=value)") -endif (NOT GENERATOR) +endif() # uninstall target configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake" @@ -61,7 +61,7 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE) if (NOT SITE_PACKAGE) message(FATAL_ERROR "Could not detect Python module installation directory.") -endif (NOT SITE_PACKAGE) +endif() set(GENERATOR_EXTRA_FLAGS --generatorSet=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic) |