Skip to content

Commit 963d112

Browse files
committed
Build names and locations better reflect source
1 parent e908161 commit 963d112

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ set_target_properties ( ${LIB_NAME}-static
9494
PROPERTIES
9595
OUTPUT_NAME ${LIB_NAME}
9696
PREFIX lib
97-
VERSION ${VERSION} )
97+
VERSION ${VERSION}
98+
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
9899
set_target_properties ( ${LIB_NAME}
99100
PROPERTIES
100101
OUTPUT_NAME ${LIB_NAME}
101102
PREFIX lib
102103
SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}
103-
VERSION ${VERSION} )
104+
VERSION ${VERSION}
105+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
104106

105107
#-------------------------------------
106108
# Build the documentation with ROBODoc
@@ -112,7 +114,7 @@ if ( NOT ROBODOC_SKIP_DOC_GEN )
112114
if ( ROBODOC ) # Found
113115
set ( ROBODOC_OPTIONS --tabsize 4 --index --toc --sections --syntaxcolors --source_line_numbers
114116
CACHE STRING "Options passed to robodoc to control building the documentation" )
115-
set ( DOC_DIR "${CMAKE_BINARY_DIR}/doc" )
117+
set ( DOC_DIR "${CMAKE_BINARY_DIR}/documentation" )
116118
set ( REQUIRED_ROBODOC_OPTIONS
117119
--src "${CMAKE_SOURCE_DIR}/src" --doc "${DOC_DIR}"
118120
--multidoc --html --ignore_case_when_linking
@@ -129,7 +131,6 @@ if ( NOT ROBODOC_SKIP_DOC_GEN )
129131
COMMENT "Building HTML documentation for ${CMAKE_PROJECT_NAME} using ROBODoc" )
130132
add_custom_target ( documentation ALL
131133
DEPENDS ${ROBO_OUTPUTS} )
132-
set_directory_properties ( PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES doc )
133134
else ( ROBODOC ) # Not found
134135
message ( WARNING
135136
"ROBODoc not found! Please set the CMake cache variable ROBODOC to point to the installed ROBODoc binary, and reconfigure or disable building the documentation. ROBODoc can be installed from: http://www.xs4all.nl/~rfsber/Robo/ If you do not wish to install ROBODoc and build the json-fortran documentation, then please set the CMake cache variable SKIP_DOCUMENTATION_GENERATION to FALSE." )

0 commit comments

Comments
 (0)