Fix comparison in Findngspice.cmake

This commit is contained in:
Jon Evans 2021-08-15 23:05:46 -04:00
parent f34e280c81
commit 4e273827f0
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ if( NOT NGSPICE_BUILD_VERSION )
share/ngspice/include/ngspice
)
if( NOT NGSPICE_CONFIG_H-NOTFOUND )
if( NOT ${NGSPICE_CONFIG_H} STREQUAL "NGSPICE_CONFIG_H-NOTFOUND" )
message( STATUS "ngspice configuration file ${NGSPICE_CONFIG_H} found." )
set( NGSPICE_HAVE_CONFIG_H "1" CACHE STRING "ngspice/config.h header found." )
endif()