Build LLVMgold.so on FreeBSD using cmake.
[oota-llvm.git] / tools / CMakeLists.txt
index 4cf5aa5105fe35c80dadb01eeb95e1e702735853..5e9560491e98c6bac0ac2dcb534b7d964f3818ca 100644 (file)
@@ -49,7 +49,8 @@ endif()
 
 if( LLVM_ENABLE_PIC )
   # TODO: support other systems:
-  if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
+  if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+      OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
     add_subdirectory(gold)
   endif()
 endif()