|
|
@ -53,6 +53,21 @@ if( NOT WITH_GPSIM )
|
|
|
|
|
|
|
|
|
|
|
|
##### check for gpsim version
|
|
|
|
##### check for gpsim version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( EXISTS ${GPSIM_INCLUDE_DIRS}/gpsim/breakpoints.h )
|
|
|
|
|
|
|
|
file( STRINGS ${GPSIM_INCLUDE_DIRS}/gpsim/breakpoints.h
|
|
|
|
|
|
|
|
GPSIM_BROKEN_INCLUDE
|
|
|
|
|
|
|
|
REGEX "^#include \"../config.h" )
|
|
|
|
|
|
|
|
if( NOT "${GPSIM_BROKEN_INCLUDE}" STREQUAL "" )
|
|
|
|
|
|
|
|
message( STATUS "Create fake config.h, due to broken gpsim includes" )
|
|
|
|
|
|
|
|
list( APPEND CMAKE_REQUIRED_INCLUDES "${CMAKE_BINARY_DIR}/CMakeFiles" )
|
|
|
|
|
|
|
|
list( APPEND GPSIM_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/src" )
|
|
|
|
|
|
|
|
if( NOT EXISTS "${CMAKE_BINARY_DIR}/config.h" )
|
|
|
|
|
|
|
|
file( WRITE "${CMAKE_BINARY_DIR}/config.h"
|
|
|
|
|
|
|
|
"/* fake config.h - due to broken gpsim includes */" )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
check_cxx_source_compiles( "
|
|
|
|
check_cxx_source_compiles( "
|
|
|
|
#include <gpsim/interface.h>
|
|
|
|
#include <gpsim/interface.h>
|
|
|
|
#include <gpsim/gpsim_interface.h>
|
|
|
|
#include <gpsim/gpsim_interface.h>
|
|
|
|