CMakeLists.txt: omit end{if,foreach} expressions
Their usefulness was almost negative.
This commit is contained in:
parent
7edd9720cd
commit
d46305d7ab
|
@ -5,7 +5,7 @@ project (wdmtg VERSION 0.1.0 LANGUAGES C)
|
|||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
||||
set (CMAKE_C_FLAGS_RELEASE
|
||||
"${CMAKE_C_FLAGS_RELEASE} -Wno-ignored-qualifiers -Wno-incompatible-pointer-types")
|
||||
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC)
|
||||
endif ()
|
||||
|
||||
# Options
|
||||
option (OPTION_NOINSTALL "Only for developers; work without installing" OFF)
|
||||
|
@ -16,10 +16,10 @@ if (OPTION_NOINSTALL)
|
|||
elseif (WIN32)
|
||||
set (project_SHARE_DIR ../share)
|
||||
set (project_INSTALL_SHARE_DIR share)
|
||||
else (OPTION_NOINSTALL)
|
||||
else ()
|
||||
set (project_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME})
|
||||
set (project_INSTALL_SHARE_DIR share/${PROJECT_NAME})
|
||||
endif (OPTION_NOINSTALL)
|
||||
endif ()
|
||||
|
||||
# Gather package information
|
||||
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
||||
|
|
Loading…
Reference in New Issue