summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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})