diff --git a/Modules/Platform/HP-UX.cmake b/Modules/Platform/HP-UX.cmake index 41f721e77..80896748e 100644 --- a/Modules/Platform/HP-UX.cmake +++ b/Modules/Platform/HP-UX.cmake @@ -88,12 +88,13 @@ ELSE(CMAKE_COMPILER_IS_GNUCXX) SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g") ENDIF(CMAKE_COMPILER_IS_GNUCXX) # set flags for gcc support -INCLUDE(Platform/UnixPaths) IF(CMAKE_SIZEOF_VOID_P EQUAL 4) LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /usr/lib/hpux32) ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4) LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /usr/lib/hpux64) ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4) +INCLUDE(Platform/UnixPaths) + IF(NOT CMAKE_COMPILER_IS_GNUCC) SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE " -E > ")