diff options
| author | Sadie Powell <sadie@witchery.services> | 2021-04-27 18:43:28 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2021-04-27 19:20:39 +0100 |
| commit | 53cd3f47b5c5afa503e96380e9e22d7d35108714 (patch) | |
| tree | 5dd38b6e5a564333268d157e0d8f568a28a49a31 /modules | |
| parent | c21f6eb5a3e27bf9a661e3fd97f49c85f00f6615 (diff) | |
Use elseif in CMake where possible.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/CMakeLists.txt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 6dbd0d4a1..efa48235c 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -68,10 +68,8 @@ macro(build_modules SRC) 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() # Set the module to be installed to the module directory under the data directory install(TARGETS ${SO} DESTINATION ${LIB_DIR}/modules) @@ -153,10 +151,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() # Set the module to be installed to the module directory under the data directory |
