Skip to content

Commit

Permalink
Fix a bug in cmake under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qingli411 committed Feb 11, 2021
1 parent 9423197 commit 365591d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_OBJECTS:cvmix_objects> )
add_library( cvmix_static STATIC ${CMAKE_CURRENT_SOURCE_DIR}/src/dummy.F90 $<TARGET_OBJECTS:cvmix_objects> )
else()
add_library( cvmix_static STATIC $<TARGET_OBJECTS:cvmix_objects> )
endif()
Expand All @@ -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 $<TARGET_OBJECTS:cvmix_objects> )
add_library( cvmix_shared SHARED ${CMAKE_CURRENT_SOURCE_DIR}/src/dummy.F90 $<TARGET_OBJECTS:cvmix_objects> )
else()
add_library( cvmix_shared SHARED $<TARGET_OBJECTS:cvmix_objects> )
endif()
Expand Down

0 comments on commit 365591d

Please sign in to comment.