Skip to content

Commit 70f44fd

Browse files
committed
CMake parallel build: fixes #8
- Used the CMake 'target property' `Fortran_MODULE_DIRECTORY` to ensure that the static and shared libraries may be build at once without stepping on eachothers toes - The module file generated during each of the builds (static vs shared) will be identical, so it doesn't matter that one is not installed, etc.
1 parent 0acffc1 commit 70f44fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ set_target_properties ( ${LIB_NAME}
103103
PREFIX lib
104104
SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}
105105
VERSION ${VERSION}
106-
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
106+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
107+
Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR} )
107108

108109
#--------------------------
109110
# Build the test executable

0 commit comments

Comments
 (0)