Index: utils/unittest/CMakeLists.txt =================================================================== --- utils/unittest/CMakeLists.txt +++ utils/unittest/CMakeLists.txt @@ -11,8 +11,13 @@ # # Project-wide settings +if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)") + set(INCLUDE_ORDER BEFORE) +endif() + # Where gtest's .h files can be found. include_directories( + ${INCLUDE_ORDER} googletest/include googletest googlemock/include