mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
Revert "fix cmake"
This reverts commit 0a0d56770402b1e077c72c3fb76d0df52caf87d5.
This commit is contained in:
parent
0a0d567704
commit
d28d86339d
@ -66,9 +66,6 @@ endif()
|
|||||||
|
|
||||||
if(PK_BUILD_SHARED_LIB)
|
if(PK_BUILD_SHARED_LIB)
|
||||||
message(">> Building shared library")
|
message(">> Building shared library")
|
||||||
if(PK_ENABLE_DETERMINISM)
|
|
||||||
message(FATAL_ERROR "PK_ENABLE_DETERMINISM is not supported with shared library")
|
|
||||||
endif()
|
|
||||||
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
||||||
elseif(PK_BUILD_STATIC_LIB)
|
elseif(PK_BUILD_STATIC_LIB)
|
||||||
message(">> Building static library")
|
message(">> Building static library")
|
||||||
@ -79,9 +76,6 @@ else()
|
|||||||
add_library(${PROJECT_NAME} STATIC ${POCKETPY_SRC})
|
add_library(${PROJECT_NAME} STATIC ${POCKETPY_SRC})
|
||||||
else()
|
else()
|
||||||
message(">> Building shared library + executable")
|
message(">> Building shared library + executable")
|
||||||
if(PK_ENABLE_DETERMINISM)
|
|
||||||
message(FATAL_ERROR "PK_ENABLE_DETERMINISM is not supported with shared library")
|
|
||||||
endif()
|
|
||||||
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
||||||
endif()
|
endif()
|
||||||
add_executable(main src2/main.c)
|
add_executable(main src2/main.c)
|
||||||
|
@ -20,7 +20,7 @@ assert config in ['Debug', 'Release', 'RelWithDebInfo']
|
|||||||
|
|
||||||
os.chdir("build")
|
os.chdir("build")
|
||||||
|
|
||||||
code = os.system(f"cmake .. -DPK_ENABLE_OS=ON -DPK_ENABLE_DETERMINISM=ON -DPK_BUILD_STATIC_MAIN=ON -DCMAKE_BUILD_TYPE={config} {extra_flags}")
|
code = os.system(f"cmake .. -DPK_ENABLE_OS=ON -DPK_ENABLE_DETERMINISM=ON -DCMAKE_BUILD_TYPE={config} {extra_flags}")
|
||||||
assert code == 0
|
assert code == 0
|
||||||
code = os.system(f"cmake --build . --config {config} -j 4")
|
code = os.system(f"cmake --build . --config {config} -j 4")
|
||||||
assert code == 0
|
assert code == 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user