diff --git a/CMakeLists.txt b/CMakeLists.txt index ee9a1e8a5..3ee8c0a29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ add_subdirectory( src ) # Add static lib target if( CVMIX_BUILD_STATIC_LIBS ) if ( WIN32 ) - add_library( cvmix_static STATIC ${CMAKE_SOURCE_DIR}/src/dummy.F90 $ ) + add_library( cvmix_static STATIC ${CMAKE_CURRENT_SOURCE_DIR}/src/dummy.F90 $ ) else() add_library( cvmix_static STATIC $ ) endif() @@ -59,7 +59,7 @@ endif() # Add shared lib target if( CVMIX_BUILD_SHARED_LIBS ) if ( WIN32 ) - add_library( cvmix_shared SHARED ${CMAKE_SOURCE_DIR}/src/dummy.F90 $ ) + add_library( cvmix_shared SHARED ${CMAKE_CURRENT_SOURCE_DIR}/src/dummy.F90 $ ) else() add_library( cvmix_shared SHARED $ ) endif()