--- tools/flang2/CMakeLists.txt.orig 2018-09-04 22:24:01 UTC +++ tools/flang2/CMakeLists.txt @@ -33,8 +33,8 @@ set(FLANG2_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/ include_directories(${FLANG2_INCLUDE_DIR}) -if( ${TARGET_OS} STREQUAL "Linux" ) - if( ${TARGET_ARCHITECTURE} STREQUAL "x86_64" ) +if( ${TARGET_OS} STREQUAL "Linux|FreeBSD" ) + if( ${TARGET_ARCHITECTURE} STREQUAL "x86_64|amd64" ) set(X86_64 ON) set(LINUX86 ON) endif()