summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-12-15 00:48:04 +0000
committerPeter Powell <petpow@saberuk.com>2015-12-31 02:51:59 +0000
commit9399a63b6617175a8e4a667f1a87ab2492feab59 (patch)
treeaaaa232c607eb22769dcdb15fc4b3f36a0635e62 /modules
parentb34cf58c8bdab22cf224219ffd93348edc1ba3f6 (diff)
Replace a ton of nested if statements with elseif statements.
Diffstat (limited to 'modules')
-rw-r--r--modules/CMakeLists.txt12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
index af76d9d90..1851f47b9 100644
--- a/modules/CMakeLists.txt
+++ b/modules/CMakeLists.txt
@@ -57,10 +57,8 @@ macro(build_modules SRC)
if(WIN32)
target_link_libraries(${TARG} ${PROGRAM_NAME} wsock32 Ws2_32 ${WIN32_MEMORY})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
- else()
- if(APPLE)
- target_link_libraries(${TARG} ${PROGRAM_NAME})
- endif()
+ elseif(APPLE)
+ target_link_libraries(${TARG} ${PROGRAM_NAME})
endif()
calculate_dependencies(${MODULE_SRC})
# Set the module to be installed to the module directory under the data directory
@@ -132,10 +130,8 @@ macro(build_subdir)
if(WIN32)
target_link_libraries(${SO} ${PROGRAM_NAME} wsock32 Ws2_32 ${WIN32_MEMORY})
set_target_properties(${PROGRAM_NAME} PROPERTIES VERSION "${VERSION_DOTTED}")
- else()
- if(APPLE)
- target_link_libraries(${SO} ${PROGRAM_NAME})
- endif()
+ elseif(APPLE)
+ target_link_libraries(${SO} ${PROGRAM_NAME})
endif()
install(TARGETS ${SO} DESTINATION ${LIB_DIR}/modules/${DIR_NAME})