summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/FreeBSD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/FreeBSD.cmake')
-rw-r--r--Modules/Platform/FreeBSD.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/FreeBSD.cmake b/Modules/Platform/FreeBSD.cmake
index b577902..cf18501 100644
--- a/Modules/Platform/FreeBSD.cmake
+++ b/Modules/Platform/FreeBSD.cmake
@@ -10,7 +10,7 @@ if(EXISTS /usr/include/dlfcn.h)
set(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
set(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
-endif(EXISTS /usr/include/dlfcn.h)
+endif()
# Shared libraries with no builtin soname may not be linked safely by
# specifying the file path.
@@ -23,6 +23,6 @@ set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
set(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
set(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
-endforeach(type)
+endforeach()
include(Platform/UnixPaths)