Skip to content

Commit 39fae0a

Browse files
authored
Merge pull request #406 from byte0xcafe/master
fixed CMakeLists.txt:
2 parents 19d4a62 + 118b55c commit 39fae0a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ target_include_directories(mir PRIVATE ${PROJECT_SOURCE_DIR})
4646
if(Threads_FOUND)
4747
target_compile_definitions(mir PUBLIC "MIR_PARALLEL_GEN")
4848
endif()
49+
if(UNIX)
50+
target_link_libraries(mir m)
51+
endif()
4952

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

6669
# ------------------ MIR RUN ----------------------
6770

68-
add_executable (mir-run "mir-run.c")
69-
target_include_directories (mir-run PRIVATE ${PROJECT_SOURCE_DIR})
70-
target_link_libraries(mir-run mir ${CMAKE_DL_LIBS} )
71+
#add_executable (mir-run "mir-run.c")
72+
#target_include_directories (mir-run PRIVATE ${PROJECT_SOURCE_DIR})
73+
#target_link_libraries(mir-run mir ${CMAKE_DL_LIBS} )
7174

7275
# ------------------ MIR utils --------------------
7376
add_executable (m2b "mir-utils/m2b.c")

0 commit comments

Comments
 (0)