Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
b93b5a4c
Commit
b93b5a4c
authored
Apr 19, 2016
by
Lynn Garren
Browse files
set CMAKE_SHARED_LINKER_FLAGS
parent
2c6e7ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/Modules/ClhepVariables.cmake
View file @
b93b5a4c
...
...
@@ -40,6 +40,8 @@ macro( clhep_check_variable_names )
message
(
STATUS
"clhep_check_variable_names: CMAKE_CXX_FLAGS_RELWITHDEBINFO is
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
"
)
message
(
STATUS
"clhep_check_variable_names: CMAKE_CXX_STANDARD_LIBRARIES is
${
CMAKE_CXX_STANDARD_LIBRARIES
}
"
)
message
(
STATUS
"clhep_check_variable_names: CMAKE_CXX_LINK_FLAGS is
${
CMAKE_CXX_LINK_FLAGS
}
"
)
message
(
STATUS
"clhep_check_variable_names: CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS is
${
CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
}
"
)
message
(
STATUS
"clhep_check_variable_names: CMAKE_SHARED_LINKER_FLAGS is
${
CMAKE_SHARED_LINKER_FLAGS
}
"
)
endmacro
(
clhep_check_variable_names
)
macro
(
clhep_autoconf_variables
)
...
...
@@ -237,6 +239,12 @@ macro( clhep_set_compiler_flags )
set
(
CMAKE_CXX_FLAGS
"/EHsc /nologo /GR /MD /D USING_VISUAL"
)
endif
()
endif
()
# linker flags
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,-undefined,error"
)
else
()
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,--no-undefined"
)
endif
()
clhep_autoconf_variables
()
message
(
STATUS
"compiling with
${
clhep_cxx_compiler
}
${
CMAKE_CXX_FLAGS
}
${
CXXFLAGS
}
"
)
endmacro
(
clhep_set_compiler_flags
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment