|
@@ -24,6 +24,16 @@ include_directories(
|
|
|
${Plugin_SOURCE_DIR}/include
|
|
${Plugin_SOURCE_DIR}/include
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+# We need proper C++98 support from the compiler
|
|
|
|
|
+set(CMAKE_CXX_STANDARD 98)
|
|
|
|
|
+
|
|
|
|
|
+# Those versions of the HP compiler that need a flag to get proper C++98
|
|
|
|
|
+# template support also need a flag to use the newer C++ library.
|
|
|
|
|
+if (CMAKE_CXX_COMPILER_ID STREQUAL HP AND
|
|
|
|
|
+ CMAKE_CXX98_STANDARD_COMPILE_OPTION STREQUAL "+hpxstd98")
|
|
|
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA")
|
|
|
|
|
+endif ()
|
|
|
|
|
+
|
|
|
# Create an executable that exports an API for use by plugins.
|
|
# Create an executable that exports an API for use by plugins.
|
|
|
add_executable(example_exe src/example_exe.cxx)
|
|
add_executable(example_exe src/example_exe.cxx)
|
|
|
set_target_properties(example_exe PROPERTIES
|
|
set_target_properties(example_exe PROPERTIES
|