Skip to content

Commit

Permalink
Merge pull request #406 from byte0xcafe/master
Browse files Browse the repository at this point in the history
fixed CMakeLists.txt:
  • Loading branch information
vnmakarov authored Jun 14, 2024
2 parents 19d4a62 + 118b55c commit 39fae0a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ target_include_directories(mir PRIVATE ${PROJECT_SOURCE_DIR})
if(Threads_FOUND)
target_compile_definitions(mir PUBLIC "MIR_PARALLEL_GEN")
endif()
if(UNIX)
target_link_libraries(mir m)
endif()

# ------------------ LIBMIR -----------------------
add_library(mir_static STATIC)
Expand All @@ -65,9 +68,9 @@ target_link_libraries(c2m mir ${CMAKE_DL_LIBS} )

# ------------------ MIR RUN ----------------------

add_executable (mir-run "mir-run.c")
target_include_directories (mir-run PRIVATE ${PROJECT_SOURCE_DIR})
target_link_libraries(mir-run mir ${CMAKE_DL_LIBS} )
#add_executable (mir-run "mir-run.c")
#target_include_directories (mir-run PRIVATE ${PROJECT_SOURCE_DIR})
#target_link_libraries(mir-run mir ${CMAKE_DL_LIBS} )

# ------------------ MIR utils --------------------
add_executable (m2b "mir-utils/m2b.c")
Expand Down

0 comments on commit 39fae0a

Please sign in to comment.