From 365591d2269cbffe4e5873d7a7254b3d092fbb68 Mon Sep 17 00:00:00 2001 From: Qing Li Date: Thu, 11 Feb 2021 07:57:40 -0700 Subject: [PATCH] Fix a bug in cmake under Windows --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()