When I try to build dogtag I have the following set: CFLAGS += -I/usr/include/nss CXXFLAGS += -I/usr/include/nss but the file pki/cmake/Modules/FindNSS.cmake has: find_path(NSS_INCLUDE_DIR NAMES nss.h PATHS ${_NSS_INCLUDEDIR} /usr/include /usr/local/include /opt/local/include /sw/include PATH_SUFFIXES nss3 ) which finds /usr/include/nss.h instead of the proper /usr/include/nss/nss.h so I get an error because it can't seem to determine the directory that the nss files are in. [ 8%] Building CXX object base/symkey/src/com/netscape/symkey/CMakeFiles/symkey_library.dir/EncryptData.cpp.o cd /var/cache/git/pki/build/core/base/symkey/src/com/netscape/symkey && /usr/bin/c++ -Dsymkey_library_EXPORTS -DHAVE_CONFIG_H -fPIC -I/var/cache/git/pki/build/core/base/symkey/src/com/netscape/symkey -I/var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey -I/var/cache/git/pki/build/core -I/usr/lib/jvm/java-6-openjdk/include -I/usr/include/nspr -o CMakeFiles/symkey_library.dir/EncryptData.cpp.o -c /var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey/EncryptData.cpp /var/cache/git/pki/pki/base/symkey/src/com/netscape/symkey/EncryptData.cpp:23:22: fatal error: pk11func.h: No such file or directory compilation terminated. build/core/CMakeCache.txt contians _NSS_INCLUDEDIR:INTERNAL=/usr/include/nss So I'm not really sure why it can't seem to determine where pk11func.c is. However, if I "mv /usr/include/nss.h /usr/include/NOTHERE_nss.h" before attempting the build, the packages all build fine. Is there a "more correct" way to tell it where the path is than to move the "wrong" nss.h out of the way? I'm compiling them on Ubuntu Precise amd64. Thanks in Advance.