Commit 21fdf4c8 authored by miller86's avatar miller86
Browse files

As per Jean Favre, adding explicit "m" (math library) for SILO_LIB link targets

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23337 18c085ea-50e0-402c-830e-de6fd14e8384
parent 99f67709
......@@ -38,6 +38,8 @@
# Kathleen Bonnell, Wed Jan 05 10:25:13 PST 2010
# Add FOLDER property.
#
# Mark C. Miller, Mon May 19 10:51:53 PDT 2014
# Added explicit 'm' (math library) for SILO_LIB linkage.
#****************************************************************************/
INCLUDE_DIRECTORIES(
......@@ -77,7 +79,7 @@ ENDFUNCTION(ADD_EXAMPLE)
FUNCTION(ADD_SILO_EXAMPLE target)
IF(SILO_FOUND)
ADD_EXECUTABLE(example_${target} ${ARGN})
TARGET_LINK_LIBRARIES(example_${target} ${SILO_LIB} stdc++)
TARGET_LINK_LIBRARIES(example_${target} ${SILO_LIB} stdc++ m)
SET_TARGET_PROPERTIES(example_${target} PROPERTIES
OUTPUT_NAME ${target}
RUNTIME_OUTPUT_DIRECTORY ${VISIT_BINARY_DIR}/tools/DataManualExamples/CreatingCompatible
......
......@@ -38,6 +38,8 @@
# Kathleen Bonnell, Wed Jan 05 10:25:13 PST 2010
# Add FOLDER property.
#
# Mark C. Miller, Mon May 19 10:51:53 PDT 2014
# Added explicit 'm' (math library) for SILO_LIB linkage.
#****************************************************************************/
INCLUDE_DIRECTORIES(
......@@ -58,7 +60,7 @@ ENDIF(NOT VISIT_DATA_MANUAL_EXAMPLES)
FUNCTION(ADD_SILO_EXAMPLE target)
IF(SILO_FOUND)
ADD_EXECUTABLE(adv_example_${target} ${ARGN})
TARGET_LINK_LIBRARIES(adv_example_${target} ${SILO_LIB} stdc++)
TARGET_LINK_LIBRARIES(adv_example_${target} ${SILO_LIB} stdc++ m)
SET_TARGET_PROPERTIES(adv_example_${target} PROPERTIES
OUTPUT_NAME ${target}
RUNTIME_OUTPUT_DIRECTORY ${VISIT_BINARY_DIR}/tools/DataManualExamples/CreatingCompatibleAdvanced
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment